-
Notifications
You must be signed in to change notification settings - Fork 1
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect colours and styles from git bash on Windows #15
Comments
@olivif Thanks! Should you have any questions, let me know! 馃榿 |
So, after some quick investigations, here's what I found 馃槃 This line is the culprit to some of the windows issues
It seems like on windows cmd that string is interpreted differently. I made a quick prototype and it seems to work. It seems like node-couleurs supports any hex/rgb code, so we would probably need a way of mapping that to this list .. Also, it seems like this is a pretty solved problem on both colors.js and chalk. |
@olivif Any news on this? |
I had a look, x256 doesn't work very well on windows either 馃槮 |
I'm on it. 馃殌 |
@IonicaBizau great stuff! much better |
@olivif For posterity: the Windows command prompt does not support 256 colors. It supports only 16 colors. I'm wondering how the new version of |
|
@olivif Do you have Visual Studio 2013 on your machine? I guess |
Yes, that is the issue. It's because I only have 2015 installed. |
@olivif Well, it aims to work with Visual Studio >= 2013. I'm thinking that maybe I should do it in the reverse way: if GraphicsMagic is not installed, then try to compile and use |
that could work 馃槃 |
@olivif I did it! There we go: Don't forget to tell Microsoft to enable 16 million colors in Command Prompt. 馃槀 Here's how it works:
|
niiiiiice!!! 馃槃 |
I will investigate how this can be made better for Windows and follow up on here 馃槂
The text was updated successfully, but these errors were encountered: