Merge pull request #819 from reitermarkus/fix-tty

Fix missing `magenta` in Tty.
This commit is contained in:
Mike McQuaid 2016-08-26 14:15:37 +01:00 committed by GitHub
commit aa165e1707
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -25,6 +25,10 @@ class Tty
bold 39
end
def magenta
bold 35
end
def red
underline 31
end