Incorrect background color when scrolling up #129
Labels
Product-Conhost
For issues in the Console codebase
Work-Item
It's being tracked by an actual work item internally. (to be removed soon)
Milestone
Windows build number: [Version 10.0.16299.248]
If I use an ANSI sequence to set the background color attribute, then move to the bottom of the screen and output some newlines so the screen scrolls up, I'd expect the newly revealed lines to have the background color that I just set.
Similarly, if I move to the top of the screen, and output the reverse feed sequence (
\033M
) so the screen scrolls down, I'd again expect the new revealed lines to use the current background color.The later case (scrolling down) works as expected, but scrolling up does not.
Test case (from a bash shell):
printf "\033[44m\033[200B\n\n\033[200A\033M\033[m"
I'd expect the above sequence to result in both the top and bottom lines of the screen having a blue background (which is what I see in a Linux console), but in the Windows 10 console, only the top line is blue.
Note that the scroll up sequence (
\033[S
) has similar problems, although it's a little more complicated. The first line that's revealed when scrolling up will have the wrong background color, but subsequent lines will be correct. Scrolling down (like reverse feed) always seems to work as expected.I suspect this may be related to issue #70. I apologise if it's just a duplicate.
The text was updated successfully, but these errors were encountered: