-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Foreground Magenta is not shown well in powershell(windows) #14243
Comments
For the npm issue, you should post about that on npm's issue tracker since they choose their own color scheme. |
I can confirm this is an issue, but I am not sure what the proper fix is... There is only a limited number of colors and some other terminal might use another color as the default background, and so on. You can use |
Ref chalk/chalk#2 |
The powershell shortcut remaps magenta and dark yellow. |
Cross-Ref PowerShell/PowerShell#4266 |
All node.js (or rather, libuv) does is call SetConsoleTextAttribute with the Since this is not a (libuv or node.js) bug and is not under our control I'll go ahead and close this. Perhaps you can file a bug report against powershell. |
FYI: https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/ |
@yyjdelete FYI after playing around and discussing a possible code level fix, it seems like the simplest solution is to override the default style for dates with a statements similar to
|
Foreground Magenta is shown as blue(the default background) in power shell, so it make the output
totally unreadable.
Not sure if it's a bug of windows, since
powershell
is now the default console in windows instead ofcmd
, could someone make an fix for this or reported to Microsoft?Run on an new powershell(Not run powershell on cmd), found something magenta is not shown, but can be copy.
The output is not shown.
![image](https://user-images.githubusercontent.com/1819074/28235874-43a09da0-694a-11e7-9a92-00aa1c761752.png)
2. Test 2(npm)
npm outdate -g
(make sure there is some pkgs outdate), and foundLatest
field is not shown.The text was updated successfully, but these errors were encountered: