The Viewport Positioning mentioned here for some reason doesn't work like for example scrolling a terminal window with a mouse wheel does.
I expected the Virtual Terminal Sequences in question to move lines that previously were outside the viewport into the viewport and move lines that previously were inside the viewport out of the viewport. Instead, it deletes the lines from the buffer I expected to be moved out and inserts new lines where I expected the previously not displayed lines to appear.
Is there a way to perform the same action as scrolling with the mouse wheel would but with Virtual Terminal Sequences? SetConsoleWindowInfo provides this functionality but I want to stick to Virtual Terminal Sequences if possible.
Another way of achieving my goal would be to set the cursor position to coordinates outside of the current viewport. The VTS for Cursor Positioning however work only within the current viewport. SetConsoleCursorPosition provides this functionality.
No, it doesn't do that. As noted at the top of Console Virtual Terminal Sequences
The virtual terminal's viewport is like the visible screen of an xterm. Control sequences update that viewport, but (ignoring old data being scrolled out of the viewport) do not update the viewport from data outside the viewport.
The control sequences related to the mouse only are used for enabling mouse events (button-clicks, select/paste), and do not cause the viewport to move around.