Don't strip ANSI color codes when output is not a TTY

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-01-31 12:51:46 -08:00
parent 76d4f5bea6
commit 8efb7e6e8b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def make_color_fn(code):
return lambda s: ansi_color(code, s)
colorama.init()
colorama.init(strip=False)
for (name, code) in get_pairs():
globals()[name] = make_color_fn(code)