-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 not set when paging through a document with ANSI escape sequences #5565
Comments
@ahuggel Good error found! 😁 (●'◡'●) Your @Sandra2001 |
So, I got to see this with
this is a /dupe of #5502. We're incorrectly optimizing runs of spaces that differ only in background color; evidenced by the "␛[102m␛[100m␛[10C" ("set background color to 2, 0, move 10 cells right"). |
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! |
Thanks for the report! |
Environment
Windows build number: Microsoft Windows [Version 10.0.18363.778]
Windows Terminal version (if applicable): 0.11.1121.0
Steps to reproduce
Page through the attached pentomino.txt file, e.g.,
less -R pentomino.txt
in WSL Debian ormore pentomino.txt
in cmd.The file contains simple graphical representations of the solutions of a puzzle, drawn with spaces and ANSI escape sequences to vary the background color, like this:
Expected behavior
The horizontal bar at the beginning of the last line of the field (
ESC[102m
) should be green.Actual behavior
When paging through the file, the bar is most of the time drawn in the background color instead of green. When scrolling through the file slowly with the arrow down key, the issue does not show. It only seems to happen for the green bar piece, when it is horizontal and starts in the first column.
The text was updated successfully, but these errors were encountered: