kennethreitz / crayons

Text UI colors for Python.
https://pypi.python.org/pypi/crayons
MIT License
423 stars 30 forks source link

Does not respect TERM=dumb #19

Closed duck2 closed 5 years ago

duck2 commented 6 years ago

Hello,

I'm using pipenv in an Acme win which doesn't recognize ANSI escape sequences and prints garbled output instead of colors. In other words, it is a dumb terminal and it sets TERM=dumb so nobody tries to pass colors to it.

pipenv prints Usage: pipenv [OPTIONS] COMMAND [ARGS]... which I suppose is actually crayons behavior.

Crayons already seems to support turning colors off, so I will try to make a PR which implements turning colors off on TERM=dumb.

ParthS007 commented 5 years ago

Closing due to inactivity :+1: