-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 color gets broken on large command output #10444
Comments
Let us know if you can reproduce it and what led to that state! Some of this is likely by design -- the terminal is supposed to take on the background color that was present at the end of the line at the bottom of the viewport, but it may not do so consistently. |
Absolutely will! I'll see if I can't get it to happen tomorrow--had to work on other stuff today, so I didn't get to do as much testing as I wanted. |
This might be related to #8823. That issue also had the background color changing on end of the line (and it doesn't happen all the time). |
Yes, I think that this is most definitely related. That seems to be about the behavior I'm seeing. |
I have been unable to reproduce the issue (unsurprisingly, because nothing ever goes wrong when you need it to), and I am almost certain that #8823 is the same issue. I will close this issue for now, and if I can find some evidence to suggest they are different issues, I will reopen. For the time being, it's probably best to avoid the duplicate issue. |
Thanks for following up 😄 If it ends up being different, feel free to reopen or open anew! |
Windows Terminal version (or Windows build number)
1.8.1521.0
Other Software
WSL2 + Void Linux
zsh shell (5.8)
Seems most frequent when using Neovim (not during, but maybe after?), GCC, clang, etc.
My configs for zsh, nvim, vim, etc. can be found here. My WT settings are attached (zipped because GitHub; note that I am almost always using my Void config, I don't use the others frequently enough to know if this happens there).
settings.zip
Steps to reproduce
Simply run a command which produces a lot of output. It's not consistent, but I can reproduce it frequently when a program's output is very long and all comes out at once (or extremely quickly, anyway). This often includes things like C++ compilers giving lots of notes, my own programs dumping a lot of debug logs (at the moment, a C++ program parsing a large JSON file and printing the parsed data), etc.
Expected Behavior
The program's output should just be there as you'd normally expect:

I have added the output line count for reference, though it's likely not super useful here.
Actual Behavior
Ironically I'm struggling to reproduce it at the moment, but what happens is that the background color after a newline character (i.e. at the end of each line, all the way to the right of the window, but not during the line's content itself) changes to a lighter one. I will see if I can figure out what actual steps seem to make this happen the most. Additionally, resizing the window seems to fix it (although it causes other issues with my shell's output, but that seems likely to be more related to the shell, or at the very least out of the scope of this issue). I normally use one window maximized (not fullscreen) with multiple tabs.
I will update with a screenshot the next time it happens (which should be about 10 seconds after I click "Submit", knowing how software works).
The text was updated successfully, but these errors were encountered: