-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Unexpected ANSI sequence behavior in cmd.exe #13231
Comments
I had contacted MS support for this issue and they redirected me to this GitHub. I am not sure how this is relevant to Terminal but, I am using cmd.exe and this place seems the most relevant. Edit: Why is the image so compressed? 😂 |
Good news! The code for Windows Terminal and the legacy console window are both here in this repository. I bet you're seeing an issue we've since fixed, where attributes get extended across the screen when the window is resized. That was #32, and it applied to any text styling (color, underline, hyperlink, ...) What is |
tat is an application I am developing. Shortest explanation is, it simply sends the escape sequences to STDOUT. I have the latest version of windows and conhost, I am not sure why the bug is persisting then? This was a screenshot yesterday.. Specifically for underlining, the program does the following: On Windows Terminal, it works just as expected. However on conhost it is not. |
Yea, this looks like a combo of #32 with {that one issue where we were initializing the buffer with the current attributes, not the default ones}. I'd reckon that the conhost changes to fix #32 aren't in 10.0.22000.675, but should be available in the next major Win11 release. (I don't know what that build number will be yet). /dup #32 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Terminal version
No response
Windows build number
Microsoft Windows [Version 10.0.22000.675]
Other Software
cmd.exe
Steps to reproduce
Apply any SGR sequence that affects character attributes in cmd.
Expected Behavior
LEFT: You can see that the ANSI escape sequences in Windows Terminal are working as intended.
Actual Behavior
RIGHT: These changes are not propagating to CMD.exe, resizing the screen creates this bleeding effect.
This issue is related to #32
The text was updated successfully, but these errors were encountered: