From db88ca1e1871df380a6408dadc2bdb81a4b25f3e Mon Sep 17 00:00:00 2001 From: Markus Reiter <me@reitermark.us> Date: Fri, 26 Aug 2016 14:14:18 +0200 Subject: [PATCH] Fix missing `magenta` in Tty. --- Library/Homebrew/cask/lib/hbc/utils.rb | 2 +- Library/Homebrew/utils.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index e151b0c1ef..5991275230 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 7b7289ca26..c1e26af6d5 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 -- GitLab