Color Scheme for Warning Message on Windows
Closed this issue ยท 4 comments
The word Warning
is not v. legible on Windows: (click to open the larger version)
Which makes it "unfriendly" to beginners ... ๐
originally reported by @cepm-nate on dwyl/learn-nightwatch#29 (comment)
Note: not so much a "bug" ... just not great for readability.
Who can't read white on yellow? (black on yellow might be better)
@cepm-nate yeah, you're right. really need to fix that... do you have time to help...?
I haven't coded any of env2, but it looks like around line 42 of env.js, they set "bold" to \u001b[1m
, and put that in front of the word "Warning". Something about that sets the background to yellow on windows, and either leaves the forground white, or sets it to white. Not sure which. This does not correspond to the windows command shell command of using "COLOR XX" at all, so I'm at a loss as to what the 1m
should actually be, although all the other lines use XXm instead of just Xm. So perhaps they are not setting both the foreground and background?
Given that no users have complained about this, I'm closing it.
If you are Windows user and have trouble seeing the colors in your terminal,
consider using https://github.com/microsoft/terminal ๐ก