From ce952c9e902504267317a4a2fc27088d29e416a1 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sun, 4 Mar 2012 16:40:02 +0100 Subject: [PATCH] Added support for more 256 color terminals. Closes #20. Thanks, @laurentb. --- httpie/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/pretty.py b/httpie/pretty.py index 49870449..774839d1 100644 --- a/httpie/pretty.py +++ b/httpie/pretty.py @@ -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)