From cda0cdfb700f8bb22475f2f4a93c94e1902af5bc Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 25 Mar 2013 12:51:53 +0100 Subject: [PATCH] redis-trib: Don't use colorization if TERM != xterm. --- src/redis-trib.rb | 1 + 1 file changed, 1 insertion(+) 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