-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Coloring not working on Windows #26
Comments
Can you run
|
That's very strange. I was thinking I'm going to assign this to @MattPlays since he wrote a lot of the color code. |
Maybe it is due to some configuration on the Windows prompt? @The-Noah have you applied any configuration to the prompt or console? |
I have no clue if I've configured cmd. |
It is, Some versions of Windows don't have |
The only way to enable it is through Regedit
I found that
I think we can use an |
This has been fixed in dbbe3e0. Thank you both for your help! |
Describe the bug
On v0.4.2, in a Windows 10 machine, printing and listing works perfectly, but it does not get the colors out, instead, it shows
�[0m
at the end of each item. When switching to the WSL, the color show properly. Therefore, it is to conclude that the Windows DOS shell does not understand the Unix colour codes.During the edition of the screenshots, I realized that in some files, at the beginning appeared
�[1m�[38;2;176;114;25mA
in a couple of files.To Reproduce
Steps to reproduce the erroneous behaviour on Windows:
--no-color
everything goes faster), but you will see that with the first element, it shows�[0m
at the end of it.Steps to reproduce proper behaviour on WSL (Debian):
Expected behaviour
As it is intended to do, and as it does on the WSL, it should colourize the items properly.
Screenshots

Screenshot of the first execution on Windows:
Screenshot of execution with the

--no-color
flag on Windows:Screenshot of execution in Debian WSL (

sh
shorthand fordebian run
):The text was updated successfully, but these errors were encountered: