vte: fix HUP/HVP positioning bug

We mixed up X/Y coordinates. HUP and HVP send them reversed as often used
in terminals. Anyway, now it works correctly.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-05-30 20:48:22 +02:00
parent 469b5c6d7c
commit 3e6d31e958

View File

@ -1022,7 +1022,7 @@ static void do_csi(struct kmscon_vte *vte, uint32_t data)
y = vte->csi_argv[1];
if (y <= 0)
y = 1;
kmscon_console_move_to(vte->con, x - 1, y - 1);
kmscon_console_move_to(vte->con, y - 1, x - 1);
break;
case 'J':
if (vte->csi_argv[0] <= 0)