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>
This commit is contained in:
April Arcus 2014-03-01 18:13:15 -08:00 committed by Mike McQuaid
parent 3f1cd069c4
commit 3ddbcd9670

View File

@ -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