diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 4839fff1..d2536871 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -40,6 +40,7 @@ def xputs(s) color=nil end + color = nil if ENV['TERM'] != "xterm" print "\033[#{color}m" if color print s print "\033[0m" if color