mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
call colorama.init(..) at import time to ensure stdout/stderr get wrapped
This commit is contained in:
@@ -27,6 +27,8 @@ DISABLE_COLOR = False
|
||||
|
||||
if not sys.stdout.isatty():
|
||||
DISABLE_COLOR = True
|
||||
else:
|
||||
colorama.init(autoreset=True)
|
||||
|
||||
|
||||
class ColoredString(object):
|
||||
|
||||
Reference in New Issue
Block a user