Fix cursor scroll issue for downlevel OS (#430)

This commit is contained in:
bagajjal 2020-03-16 23:27:57 +00:00 committed by GitHub
parent 6b1af6abaa
commit 0516e2d619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ SendSetCursor(HANDLE hInput, int X, int Y)
int out = 0;
char formatted_output[255];
out = _snprintf_s(formatted_output, sizeof(formatted_output), _TRUNCATE, "\033[%d;%dH", Y - ViewPortY, X);
out = _snprintf_s(formatted_output, sizeof(formatted_output), _TRUNCATE, "\033[%d;%dH", Y, X);
if (out > 0 && bUseAnsiEmulation)
WriteFile(hInput, formatted_output, out, &wr, NULL);
}