diff --git a/crayons.py b/crayons.py index 5c68e0d..8eefcb4 100644 --- a/crayons.py +++ b/crayons.py @@ -34,6 +34,8 @@ if 'get_ipython' in dir(): else: DISABLE_COLOR = False +if os.environ["TERM"] == "dumb": + DISABLE_COLOR = True class ColoredString(object): """Enhanced string for __len__ operations on Colored output."""