mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 17:04:50 +01:00
Cleanup
This commit is contained in:
parent
b596fedf13
commit
932d3224f4
@ -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).
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user