-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows CMD - colors and Symbols are not displayed correctly #603
Comments
Looks like there is an issue in your console configuration. Does color in other programs (e.g. pip) work? |
Yep you're right: But coloring in pip actually works - no Idea how they do that: Also with pipenv it works like a charm without ANSI support. |
Both pip and pipenv use colorama for colors, which is based on Windows API, not ANSI codes. Maybe pipx can use it as well. With that said, I just noticed pipx’s code base actually turns all colors off on Windows, so those escape codes are likely not colors at all. I wonder where those come from. |
Can I do something to find it out? |
I think those may be the Possibly we need to avoid them in Windows. |
Or use a platform-specific solution on Windows? There are Windows APIs for this: https://stackoverflow.com/a/10455937/1376863 |
I always am annoyed with Windows because there are so many different shells, and they all seem to behave differently, especially when trying to do anything more than print text. I wonder if the solution in the stackoverflow link works for all the shells people use. |
I could offer to test
-> actually I don't know more ;-) |
@CarliJoy, could you test the linked PR and see if it stops printing cryptic characters in your Windows shells? |
OK, so those characters must be from something else, but at least some of the issue has been fixed. |
Ah got it! |
It looks like |
Thanks for your help testing @CarliJoy . |
shall I test your fix in #612 again? |
Double Posting from #612 Current Result on Windows: |
Describe the bug
Using Windows 10 colors and symbols are not displayed.
How to reproduce
Install pipx with Python 3.8 on Windows 10 like described in the documentation.
Use any pipx command with cmd.
Expected behavior
Symbol and Colors are displayed like in a bash shell.
What I currently get is:
The text was updated successfully, but these errors were encountered: