-
Notifications
You must be signed in to change notification settings - Fork 280
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 7 grey/white foreground swapped #263
Comments
Did you use WinAPI for windows 10? If so, isn't this a windows interpretation problem since Windows 10 seems to be behaving correctly? |
Windows 10 cmd/powershell seems to be behaving OK, presumably because it's using the ANSI backend. Windows 7 cmd/powershell isn't, presumably because it's using the WinAPI backend. |
As you see my comment were I disabled ansi you can see that it isn't correct as well. I think we need to swap those colors and see if that fixes the problem |
Fixed by: crossterm-rs/crossterm-style#5 Powershell WinApi windows 10 CMD Windows 7 WinApi |
crossterm-style 's WinApiColor backend applies INTENSITY to Grey instead of to White:
Foreground should be swapped around.
Background should be left alone, based on cmd.exe / powershell.exe's behavior.
Background is often - but not always - "wrong" inside of VS Code, including in VS Code's "Default Dark+" theme, but VS Code's themes are an inconsistent and incoherent mess on this front (sometimes INTENSITY makes the background darker in a dark theme, lighter in a dark theme, sometimes it's just plain ignored, sometimes other colors also get inverted brightening behavior, etc. etc. etc.)
Windows 7 (cmd.exe)
The current behavior appears to be correct for backgrounds, but not for foregrounds, as it makes "white" darker than "grey". Using the same flush-heavy demo from #262
Windows 10 (cmd.exe)
This is just provided as a reference.
Windows 7 (VS Code, Default Dark+ Theme)
Windows 10 (VS Code, Default Dark+ Theme)
Test Code
Same as #262 's flush-heavy version:
The text was updated successfully, but these errors were encountered: