mirror of
https://github.com/httpie/cli.git
synced 2025-02-23 13:00:48 +01: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()
|
AVAILABLE_STYLES = [DEFAULT_STYLE] + STYLE_MAP.keys()
|
||||||
TYPE_JS = 'application/javascript'
|
TYPE_JS = 'application/javascript'
|
||||||
FORMATTER = (Terminal256Formatter
|
FORMATTER = (Terminal256Formatter
|
||||||
if os.environ.get('TERM') == 'xterm-256color'
|
if '256color' in os.environ.get('TERM', '')
|
||||||
else TerminalFormatter)
|
else TerminalFormatter)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user