Merge pull request #20 from duck2/master

Disable colors on TERM=dumb
This commit is contained in:
2019-02-21 06:32:44 -05:00
committed by GitHub
+2
View File
@@ -34,6 +34,8 @@ if 'get_ipython' in dir():
else:
DISABLE_COLOR = False
if os.getenv("TERM") == "dumb":
DISABLE_COLOR = True
class ColoredString(object):
"""Enhanced string for __len__ operations on Colored output."""