-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Background colour sometimes ignored in Windows Terminal #8823
Comments
Weird. I don't think this is #3848, though it does seem similar. |
This looks to me like a problem in the conpty space optimization - on some lines it's just not sending through the Issue #5430 might be related. |
We believe this was fixed in Terminal v1.13, in #11982. @clinton-r would you mind confirming? |
Hi @zadjii-msft , I just tried it again with version 1.13.10395.0 and the problem is gone. Thanks! I had also mentioned this in the Notes section:
(Note I meant the first line of the inner for loop.) That is still the case, but I think it makes sense for it to be behaving like this - I assume it colours the full line when scrolling down, before I set the new colours and write text. Here's what it looks like: |
Yep, that's correct. That's more in line with what other Terminal emulators do. Thanks for confirming! |
Environment
Microsoft Windows [Version 10.0.19041.746]
Windows Terminal Version: 1.4.3243.0
Microsoft Visual Studio Community 2019 Version 16.8.4
Steps to reproduce
Compile the test program below.
Open Windows Terminal cmd or Powershell tab. Run the program. (Might have to run it several times to see the problem.)
Expected behavior
The test program uses SGR VT sequences to show all the different foreground and background colours, as well as negative and underlined text.
Actual behavior
For each line, the program first erases the line before printing text on it, to set the entire line to the background colour. It appears that sometimes black is used instead of the background colour. Also, spaces are sometimes printed as black instead of the background colour as well. Here is an example with both line and a space:
Notes
Doesn't happen in conhost.
Something similar happens when the terminal scrolls down - usually the new blank line gets the background colour as it should, but occasionally it gets black instead. (Try commenting out the first line in the for loop.)
Thanks
The text was updated successfully, but these errors were encountered: