1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

Added support for more 256 color terminals.

Closes #20. Thanks, @laurentb.
This commit is contained in:
Jakub Roztocil 2012-03-04 16:40:02 +01:00
parent e83e601f7c
commit ce952c9e90

View File

@ -15,7 +15,7 @@ DEFAULT_STYLE = 'solarized'
AVAILABLE_STYLES = [DEFAULT_STYLE] + STYLE_MAP.keys()
TYPE_JS = 'application/javascript'
FORMATTER = (Terminal256Formatter
if os.environ.get('TERM') == 'xterm-256color'
if '256color' in os.environ.get('TERM', '')
else TerminalFormatter)