mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
redis-trib: Don't use colorization if TERM != xterm.
This commit is contained in:
parent
4286d8b979
commit
cda0cdfb70
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user