Skip to content
Snippets Groups Projects
Commit db88ca1e authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix missing `magenta` in Tty.

parent 48ac1518
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ def odebug(title, *sput) ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment