mirror of
https://github.com/docker/compose.git
synced 2025-07-29 08:34:15 +02:00
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
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user