Skip to content

Commit 97a0f46

Browse files
committed
FIX: changing order of values for setting cursor position (Esc[Line;ColumnH)
1 parent c6b17ca commit 97a0f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/win32/dev-stdio.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ DEFINE_DEV(Dev_StdIO, "Standard IO", 1, Dev_Cmds, RDC_MAX, 0);
604604
value2 = 0;
605605
state = 1;
606606
} else if (*cp == 'H' || *cp == 'f') {
607-
coordScreen.X = value1;
608-
coordScreen.Y = value2;
607+
coordScreen.Y = value1;
608+
coordScreen.X = value2;
609609
SetConsoleCursorPosition(Std_Out, coordScreen);
610610
state = -1;
611611
} else {

0 commit comments

Comments
 (0)