From 932d3224f4318bc69ab8046a066d65151aaff012 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Fri, 2 Nov 2018 16:21:06 +0100 Subject: [PATCH] Cleanup --- httpie/cli.py | 4 ++-- httpie/output/formatters/colors.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httpie/cli.py b/httpie/cli.py index 2a7c2278..ac2a8dd7 100644 --- a/httpie/cli.py +++ b/httpie/cli.py @@ -214,9 +214,9 @@ output_processing.add_argument( {available_styles} - The "{auto_style}" style follows your terminal’s 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 + For non-{auto_style} styles to work properly, please make sure that the $TERM environment variable is set to "xterm-256color" or similar (e.g., via `export TERM=xterm-256color' in your ~/.bashrc). diff --git a/httpie/output/formatters/colors.py b/httpie/output/formatters/colors.py index 4ea423fd..d8ef808c 100644 --- a/httpie/output/formatters/colors.py +++ b/httpie/output/formatters/colors.py @@ -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(