Merge pull request #4410 from shin-/4408-colors-no-tty
Don't strip ANSI color codes when output is not a TTY
This commit is contained in:
commit
67e1111806
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def make_color_fn(code):
|
||||||
return lambda s: ansi_color(code, s)
|
return lambda s: ansi_color(code, s)
|
||||||
|
|
||||||
|
|
||||||
colorama.init()
|
colorama.init(strip=False)
|
||||||
for (name, code) in get_pairs():
|
for (name, code) in get_pairs():
|
||||||
globals()[name] = make_color_fn(code)
|
globals()[name] = make_color_fn(code)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue