-
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
CMD color Not Working with Scroll #11867
Comments
Huh. I wonder if this regressed in #5792, or if this always existed in conpty. the So then, when the new lines get scrolled into conpty, are those:
|
In VT mode, new lines when scrolling are meant to be initialized with the active color attributes. This would typically be the As far as I can tell this works in conhost, even when the buffer is set to the same size as the screen (this was implemented in PR #3100). So I suspect this is probably a conpty issue and/or a bug in the WT VT implementation. |
I think it's possible that #8823 might be a related problem. In both cases, it looks like you can "fix" the issue by setting the Windows Terminal history size to 0. |
Might be related to #12567, or at least worth looking at when we look at that one. |
@zadjii-msft FYI, I wasn't able to reproduce this with the latest version, so I did a As I understand it, the problem in all these cases is that conpty is sending through an This isn't ideal though - it means the conpty scrolling is probably less efficient than it could be. I'm also concerned that this got fixed by accident, and that maybe there are still edge cases where things will break - I have no clue how that conpty code actually works. But at least for now I think it's better than it was. |
I think what you're seeing is the space reserved for the scrollbar. If you set the scrollbar visibility to hidden, and the window padding to 0, the background color should extend all the way to the edge. |
Yes, room for the scrollbar. However, on the stable version of Windows Terminal (1.11.3471.0) on Windows 10, the scroll bar is very skinny but when scrolling it gets larger and uses up the space on the right. On the preview version of Windows Terminal (1.13.10395.0) on Windows 10, the scroll bar is also very skinny but when scrolling it gets a little larger but does not take up the space that it should. Mike |
OK, I'm seeing that too. That looks like a bug to me. I know there have been some complaints about the narrowness of the new scrollbar, so if that gets reverted this problem might just go away, but you may want to raise an issue for it anyway if it bothers you. |
Windows Terminal version
1.11.2921.0
Windows build number
10.0.22000
Other Software
No response
Steps to reproduce
Expected Behavior
After the "dir /s" I expect the background to stay blue.
Actual Behavior
After the "dir /s" the background of the text stays blue but the non-text area goes black (or the color as specified by the Windows Terminal preferences).
The text was updated successfully, but these errors were encountered: