Support more 256 color terminals

This commit is contained in:
Laurent Bachelier 2012-03-04 15:32:39 +01:00
parent c446d756ab
commit bd034a57d1

View File

@ -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)