Windows build number: Version 10.0.18362.295
Also test with a recent commit 7faf3342e0187841d590fd018452c5c69fd52271
In a conhost WSL shell, execute the following command:
echo -e "\e[6;19r\e[12H\e[99ECNL\e[12H\e[99FCPL\e[r"
This does the following:
DECSTBM
margins to 6 and 19CNL
sequence with a count of 99, to move down 99 linesCPL
sequence with a count of 99, to move up 99 linesI can't find spec text to back this up, but in both XTerm and the Gnome VTE terminal these commands are constrained by the DECSTBM
margins, so CNL
doesn't move below row 19 (the bottom margin), and CPL
doesn't move above row 6 (the top margin).
This is what the output looks like in XTerm:
The margins are ignored by the Windows console, so CNL
moves all the way to the bottom of the viewport, and CPL
moves all the way to the top of the viewport.
I can't say for certain that this is wrong, but I think we should probably be trying to match the XTerm and VTE behaviour unless there is convincing evidence that they've got it wrong.
Yeah, matching XTerm and VTE sounds correct to me!
:tada:This issue was addressed in #3628, which has now been successfully released as Windows Terminal Preview v0.8.10261.0
.:tada:
Handy links:
:tada:This issue was addressed in #3628, which has now been successfully released as Windows Terminal Preview v0.9.433.0
.:tada:
Handy links:
Most helpful comment
Yeah, matching XTerm and VTE sounds correct to me!