mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
correct CSI H: swap X and Y
This commit is contained in:
@@ -675,10 +675,10 @@ vga_put(char c)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'H': /* set cursor position */
|
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 == ';')
|
if (*end == ';')
|
||||||
{
|
{
|
||||||
tmp_y = strtol(end + 1, &end, 10);
|
tmp_x = strtol(end + 1, &end, 10);
|
||||||
if (*end == 'H')
|
if (*end == 'H')
|
||||||
{
|
{
|
||||||
vga.pos_x = tmp_x;
|
vga.pos_x = tmp_x;
|
||||||
|
Reference in New Issue
Block a user