ScrollConsoleScreenBuffer API shouldn't be affected by DECSTBM margins #2659
Labels
Area-VT
Virtual Terminal sequence support
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Conhost
For issues in the Console codebase
Milestone
Environment
Steps to reproduce
Compile and run the following C++ code:
Expected behavior
I'd expect the
ScrollConsoleScreenBuffer
to behave exactly as specified in the documentation. So the viewport content should be moved down by 4 lines, but only altering the area within the clipRect. I wouldn't expect the DECSTBM margins to have any affect on this operation.Essentially the output should look like this:
Actual behavior
The vertical extent of the affected area seems to be determined by the DECSTBM margins rather than the clipRect, and the viewport content is actually moved up by 1 line instead of down by 4.
I could possibly imagine it was intentional for the DECSTBM margins to have an affect if it wasn't for the fact that the scroll direction was backwards. So I'm almost certain that this is not the intended behaviour.
As I mentioned in issue #2543, I think this is another argument in favor of removing the DECSTBM margin checking from the
ScrollRegion
function.The text was updated successfully, but these errors were encountered: