From 3ddbcd9670d2303247f5d30ac404f57e3fff8352 Mon Sep 17 00:00:00 2001 From: April Arcus Date: Sat, 1 Mar 2014 18:13:15 -0800 Subject: [PATCH] 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 --- Library/Homebrew/utils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index ee429073bf..f272ab34c7 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