Permalink
Browse files

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>
  • Loading branch information...
1 parent 469b5c6 commit 3e6d31e9584c5c21bb1ad08c2efd38e85ca32a63 @dvdhrm committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vte.c
View
@@ -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)

0 comments on commit 3e6d31e

Please sign in to comment.