mirror of
https://github.com/vivier/EMILE.git
synced 2026-10-22 04:02:33 +00:00
correct CSI H: swap X and Y
This commit is contained in:
1 parent
bc2f989dd6
commit
981121e8fa
1 file changed
+2
-2
+2
-2
@@ -675,10 +675,10 @@ vga_put(char c)
|
||||
break;
|
||||
|
||||
case 'H': /* set cursor position */
|
||||
tmp_x = strtol(vga.escape_stack + 1, &end, 10);
|
||||
tmp_y = strtol(vga.escape_stack + 1, &end, 10);
|
||||
if (*end == ';')
|
||||
{
|
||||
tmp_y = strtol(end + 1, &end, 10);
|
||||
tmp_x = strtol(end + 1, &end, 10);
|
||||
if (*end == 'H')
|
||||
{
|
||||
vga.pos_x = tmp_x;
|
||||
|
||||
Reference in new issue
Block a user