diff options
| author | April Arcus | 2014-03-01 18:13:15 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-03 12:34:31 +0000 |
| commit | 03fd16ff5210da8b1facb7c80bef28753a4fc657 (patch) | |
| tree | 19f4f920b7d318417b4cef78a77a866b56a615f2 /Library | |
| parent | ac48feb6ba7d090d4212777a117c756f1f7eb1d2 (diff) | |
| download | homebrew-03fd16ff5210da8b1facb7c80bef28753a4fc657.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 #27125.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 6 |
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 |
