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
|
if $stdout.tty? && title.to_s.length > width
|
||||||
title = title.to_s[0, width - 3] + "..."
|
title = title.to_s[0, width - 3] + "..."
|
||||||
end
|
end
|
||||||
puts "#{Tty.magenta}==> #{title}#{Tty.reset}"
|
puts "#{Tty.magenta}==>#{Tty.reset} #{Tty.white}#{title}#{Tty.reset}"
|
||||||
puts sput unless sput.empty?
|
puts sput unless sput.empty?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,6 +25,10 @@ class Tty
|
|||||||
bold 39
|
bold 39
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def magenta
|
||||||
|
bold 35
|
||||||
|
end
|
||||||
|
|
||||||
def red
|
def red
|
||||||
underline 31
|
underline 31
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user