ANSI control sequence ESC M uses incorrect default background color (Windows Console Host) #4182
Labels
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Environment
Steps to reproduce
Screen background is set to any color other than 0:
From bash in WSL:
The control sequence
ESC [ 1 T
scrolls down 1 line, and fills the new line with the background colorThe control sequence
ESC M
also scrolls down 1 line, but uses color 0 instead of the background colorApplications like
less
,man
, andvim
all useESC M
for scrolling, and scrolling upwards causes new lines to be filled with the wrong background color:ESC [ L
(insert lines) appears to have the same problem.Additionally, this only happens when the current background color is set to the default. otherwise, ESC M acts correctly (try inserting
\e[41m
after theH
in the command)Expected behavior
Both control sequences should have the same behavior
Actual behavior
ESC M
uses color 0 instead of the default color, when the background color is set to the defaultThe text was updated successfully, but these errors were encountered: