Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed colorized output on Windows with Python 3.
Closes #87.
- Loading branch information
Showing
5 changed files
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4660da9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I "http PUT httpbin.org/put hello=world" I'm only seeing yellow color on "1.1 200" as in "HTTP/1.1 200 OK" and everything else is the default color.
4660da9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What Windows version and terminal emulator do you use?
You can try to play with different values for the
--style
option to see which one gives the best result. I've tested it on Windows 7 with PowerShell and the best style seemed to befruity
so I made it default for Windows, but maybe there is a better one.Cheers for all the feedback!
4660da9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4660da9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4660da9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 149cbc1. Solarized isn't very Windows-friendly though.
I've now tested the default Windows style
fruity
with cmd.exe and it provides the same result as PowerShell for me:I'm quite not sure why it doesn't work in your environment.