Commit cda0cdfb authored by antirez's avatar antirez
Browse files

redis-trib: Don't use colorization if TERM != xterm.

parent 4286d8b9
...@@ -40,6 +40,7 @@ def xputs(s) ...@@ -40,6 +40,7 @@ def xputs(s)
color=nil color=nil
end end
color = nil if ENV['TERM'] != "xterm"
print "\033[#{color}m" if color print "\033[#{color}m" if color
print s print s
print "\033[0m" if color print "\033[0m" if color
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment