From 3e6d31e9584c5c21bb1ad08c2efd38e85ca32a63 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 30 May 2012 20:48:22 +0200 Subject: [PATCH] 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 --- src/vte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vte.c b/src/vte.c index ca352f6..8d42ee5 100644 --- a/src/vte.c +++ b/src/vte.c @@ -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)