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:
parent
e83e601f7c
commit
ce952c9e90
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user