forked from extern/httpie-cli
Cleanup
This commit is contained in:
parent
b596fedf13
commit
932d3224f4
@ -214,9 +214,9 @@ 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
|
||||||
(e.g., via `export TERM=xterm-256color' in your ~/.bashrc).
|
(e.g., via `export TERM=xterm-256color' in your ~/.bashrc).
|
||||||
|
|
||||||
|
@ -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