mirror of
https://github.com/httpie/cli.git
synced 2025-01-10 00:28:12 +02:00
Cleanup
This commit is contained in:
parent
b596fedf13
commit
932d3224f4
@ -214,7 +214,7 @@ output_processing.add_argument(
|
|||||||
|
|
||||||
{available_styles}
|
{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
|
$TERM environment variable is set to "xterm-256color" or similar
|
||||||
|
@ -51,8 +51,8 @@ class ColorFormatter(FormatterPlugin):
|
|||||||
use_auto_style = color_scheme == AUTO_STYLE
|
use_auto_style = color_scheme == AUTO_STYLE
|
||||||
has_256_colors = env.colors == 256
|
has_256_colors = env.colors == 256
|
||||||
if use_auto_style or not has_256_colors:
|
if use_auto_style or not has_256_colors:
|
||||||
formatter = TerminalFormatter()
|
|
||||||
http_lexer = PygmentsHttpLexer()
|
http_lexer = PygmentsHttpLexer()
|
||||||
|
formatter = TerminalFormatter()
|
||||||
else:
|
else:
|
||||||
http_lexer = SimplifiedHTTPLexer()
|
http_lexer = SimplifiedHTTPLexer()
|
||||||
formatter = Terminal256Formatter(
|
formatter = Terminal256Formatter(
|
||||||
|
Loading…
Reference in New Issue
Block a user