Merge pull request #819 from reitermarkus/fix-tty
Fix missing `magenta` in Tty.
This commit is contained in:
commit
aa165e1707
@ -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
|
||||
|
||||
@ -25,6 +25,10 @@ class Tty
|
||||
bold 39
|
||||
end
|
||||
|
||||
def magenta
|
||||
bold 35
|
||||
end
|
||||
|
||||
def red
|
||||
underline 31
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user