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
bold text always renders as white #1235
Comments
Your report is incomplete. You have likely run |
See also the lengthy discussions about ConPTY passthrough mode (microsoft/terminal#1173). |
To add some detail: wsl has the insane idea that "bold" would mean "bright white". It sets ANSI mode 97 explicitly, which is then correctly interpreted by mintty. You can verify this by choosing any other default colour, the bold foreground will always be white via wsl. |
No it doesn't. That issue was addressed more than 3 years ago. If you're still getting that you must be using a really old version of conpty. |
Hmm, thanks for the hint but my Windows version is 22H2 19045. Is ConPTY installed per WSL distribution? How would it be upgraded? |
You can bundle a more recent version of the conpty dll with mintty the way wezterm has done (see https://github.com/wez/wezterm/tree/main/assets/windows/conhost), or give users the option to provide the conpty dll themselves similar to what alacritty is doing. |
which I'd need indeed as I don't have its native build environment, but then:
which gets me back to the point that this may be fixed in conhost but the fix is not shipped with Windows, so the whole issue is still a Windows bug. |
I guess you can try reporting this as a bug to Windows, but they'll probably tell you that you need to upgrade to Windows 11. As much as I'd love for Windows 10 to get a more recent version of conhost, I doubt they consider this a high enough priority to be included as a system patch. Anyone that can't upgrade Windows can always switch to a terminal that isn't affected by this issue. |
There is an ANSI escape code for rendering bold text:
ESC [ 1m
This is supposed to render the text bold or bright in the current foreground color.
mintty seems to always render this text in bright white.
When you choose Foreground color black and Background color white, then any text presented as bold by ESC [ 1m appears invisible/unreadable to the user. Mind that many Linux/UNIX programs use this code to highlight text (e.g, the default settings for
man
, default settings for colored output ofpacman
, etc.). mintty becomes unusable with a white or light background.It doesn't matter what color scheme you use.
Obvious test case to show this issue:
echo "^[[1mhello^[[0m world"
(where ^[ is Ctrl-V ESC)hello
will appear invisible.Note
xterm
will also show it (settingas font
andas colour
won't)Currently using mintty 3.6.5 (x86_64-pc-msys) [Windows 19045] installed from msys2
The text was updated successfully, but these errors were encountered: