HTTPie doesn’t honor –style colors in mintty/cygwin

less than 1 minute read,

Be sure to check our $TERM variable.

cowboy@bigcowboy:\~$ echo $TERM  
xterm-256color

It should have the words “256color” before you can use httpie’s –styles.

Specifically, the offending code is in httpie models.py: Line 25

colors = 256 if '256color' in os.environ.get('TERM', '') else 88

image

Hope that helps,
Brian Chavez

Updated:

Leave a comment

Your email address will not be published. Required fields are marked *

Loading...