mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
Support more 256 color terminals
This commit is contained in:
parent
c446d756ab
commit
bd034a57d1
@ -14,8 +14,9 @@ from . import solarized
|
||||
DEFAULT_STYLE = 'solarized'
|
||||
AVAILABLE_STYLES = [DEFAULT_STYLE] + STYLE_MAP.keys()
|
||||
TYPE_JS = 'application/javascript'
|
||||
TERMS_256 = ('rxvt-unicode-256color', 'screen-256color', 'xterm-256color')
|
||||
FORMATTER = (Terminal256Formatter
|
||||
if os.environ.get('TERM') == 'xterm-256color'
|
||||
if os.environ.get('TERM', '') in TERMS_256
|
||||
else TerminalFormatter)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user