aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorApril Arcus2014-03-01 18:13:15 -0800
committerMike McQuaid2014-03-03 12:34:31 +0000
commit3ddbcd9670d2303247f5d30ac404f57e3fff8352 (patch)
tree40b59c0a8b880d028eefc82adb7b08383e524071 /Library
parent3f1cd069c462670f02d01185f76a58aa2a78cfbc (diff)
downloadbrew-3ddbcd9670d2303247f5d30ac404f57e3fff8352.tar.bz2
utils: replace bright green with ANSI bold+green.
There are two ways of outputting bright ANSI colors to the terminal - the ANSI codes 30-37 plus a bold code (most terminals render bold text with brighter colors, by convention), or the widely supported aixterm codes 90-97. Although the aixterm codes are more precise (disambiguating bold font from bright color), the ANSI bold+green enables compatibility with the popular [Solarized](https://github.com/altercation/solarized) color theme, which reassigns the "bright green" codepoint to a shade of gray. Closes Homebrew/homebrew#27125. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index ee429073b..f272ab34c 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -10,11 +10,11 @@ class Tty
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
- def yellow; underline 33 ; end
+ def yellow; underline 33; end
def reset; escape 0; end
def em; underline 39; end
- def green; color 92 end
- def gray; bold 30 end
+ def green; bold 32; end
+ def gray; bold 30; end
def width
`/usr/bin/tput cols`.strip.to_i