mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
Fix cursor scroll issue for downlevel OS (#430)
This commit is contained in:
parent
6b1af6abaa
commit
0516e2d619
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user