This commit is contained in:
Jakub Roztocil 2018-11-02 16:21:06 +01:00
parent b596fedf13
commit 932d3224f4
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ output_processing.add_argument(
{available_styles}
The "{auto_style}" style follows your terminals ANSI color styles.
The "{auto_style}" style follows your terminal's ANSI color styles.
For non-{auto_style} styles to work properly, please make sure that the
$TERM environment variable is set to "xterm-256color" or similar

View File

@ -51,8 +51,8 @@ class ColorFormatter(FormatterPlugin):
use_auto_style = color_scheme == AUTO_STYLE
has_256_colors = env.colors == 256
if use_auto_style or not has_256_colors:
formatter = TerminalFormatter()
http_lexer = PygmentsHttpLexer()
formatter = TerminalFormatter()
else:
http_lexer = SimplifiedHTTPLexer()
formatter = Terminal256Formatter(