Fix missing magenta in Tty.

This commit is contained in:
Markus Reiter 2016-08-26 14:14:18 +02:00
parent 48ac15180c
commit db88ca1e18
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