We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f3f374 + 92a6d78 commit d516da6Copy full SHA for d516da6
icecream/icecream.py
@@ -57,9 +57,12 @@ def colorize(s):
57
def supportTerminalColorsInWindows():
58
# Filter and replace ANSI escape sequences on Windows with equivalent Win32
59
# API calls. This code does nothing on non-Windows systems.
60
- colorama.init()
61
- yield
62
- colorama.deinit()
+ if sys.platform.startswith('win'):
+ colorama.init()
+ yield
63
+ colorama.deinit()
64
+ else:
65
66
67
68
def stderrPrint(*args):
0 commit comments