mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
correct CSI H: swap X and Y
This commit is contained in:
parent
bc2f989dd6
commit
981121e8fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user