OS Win 10 Console, cmd.exe standard default console, problem with VT100

kopiev 0 Reputation points
2024-09-04T12:01:46.5733333+00:00

The console fails to scroll after VT100 commands. I use standard console and need to adjust viewport in order to fit text inside it. I tried several commands without success to do any scrolls outside visible area of the console screen. For instance, what i need to do in order to scroll viewport one line up by the following commands inside batch files:

for /F "skip=1" %%a in ('"echo prompt $E %%b cmd /d /q /k"') do set "ESC=%%a"

<nul call set /p "=%%ESC%%[1;5A"

(timeout /t 15)>nul

I looked for reference many sources, but they didn't help.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kopiev 0 Reputation points
    2024-09-05T00:02:29.8233333+00:00

    Scrolling can be done using next powershell command:

    powershell -nop -ep Bypass -c $host.UI.RawUI.WindowPosition = New-Object System.Management.Automation.Host.Coordinates(0,%NewY%)

    The question is closed... Tnx.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.