-
-
Notifications
You must be signed in to change notification settings - Fork 863
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 resets previous color #325
Comments
I think you answered your own question there - this is a bug with mintty, not Chalk. |
Hm, maybe I didn't express myself clear enough. Sorry. Also, note that in the second image the last two test strings are unfortunately flipped, but both images - mintty and
I do agree, however, that this probably isn't a bug in chalk, but an odd quirk in how the Windows terminal chooses to interpret those color changes. Also, I'm assuming that there's a general consensus that for one, preserving the color information is more important than preserving the boldness, and two order of operaton should not matter here -- so chalk may want to implement some workaround. 😉 |
Sorry, should have looked closer. The codes are correct, I believe Microsoft has fixed a lot of these but they haven't been released yet. See debug-js/debug#683 for something quite similar, if not the same - namely this comment. |
Closing as this is not actionable for us and it's not something we're interested in working around. Instead, open an issue on the relevant terminals. |
Depending on order and type of operations,
bold
causes a previously set color to be suppressed:The screenshot above was taken on Windows 10 1709 (Enterprise) using Node v10.13.0 through winpty 0.4.3 in mintty 2.8.1 installed with Git for Windows. Running node via Powershell or
cmd
yields identical ANSI sequences and similar results, as far as the coloration of the last sample is concerned, e.g.:The text was updated successfully, but these errors were encountered: