aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-08-26 14:15:37 +0100
committerGitHub2016-08-26 14:15:37 +0100
commitaa165e17075179ede8d17f64e7688b7d5ebdcf22 (patch)
tree53bd25ae3fef0c2a83bdeddc64cdf84d57c8a0ec /Library/Homebrew
parent48ac15180c01c9038125aec25fd059ab60579e8c (diff)
parentdb88ca1e1871df380a6408dadc2bdb81a4b25f3e (diff)
downloadbrew-aa165e17075179ede8d17f64e7688b7d5ebdcf22.tar.bz2
Merge pull request #819 from reitermarkus/fix-tty
Fix missing `magenta` in Tty.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/lib/hbc/utils.rb2
-rw-r--r--Library/Homebrew/utils.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb
index e151b0c1e..599127523 100644
--- a/Library/Homebrew/cask/lib/hbc/utils.rb
+++ b/Library/Homebrew/cask/lib/hbc/utils.rb
@@ -37,7 +37,7 @@ def odebug(title, *sput)
if $stdout.tty? && title.to_s.length > width
title = title.to_s[0, width - 3] + "..."
end
- puts "#{Tty.magenta}==> #{title}#{Tty.reset}"
+ puts "#{Tty.magenta}==>#{Tty.reset} #{Tty.white}#{title}#{Tty.reset}"
puts sput unless sput.empty?
end
end
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 7b7289ca2..c1e26af6d 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -25,6 +25,10 @@ class Tty
bold 39
end
+ def magenta
+ bold 35
+ end
+
def red
underline 31
end