From ba59f62a26162902d0d8bc527ca274f18377d611 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 14 Jul 2012 19:34:04 +0200 Subject: [PATCH] vte: fix application cursor keys This is probably a copy/paste bug but we sent the wrong application cursor key sequences. This is only visible in xterm-mode so nobody noticed until now. Signed-off-by: David Herrmann --- src/vte.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vte.c b/src/vte.c index 3ad7565..bb0d5a8 100644 --- a/src/vte.c +++ b/src/vte.c @@ -1911,19 +1911,19 @@ void kmscon_vte_handle_keyboard(struct kmscon_vte *vte, return; case XK_Up: if (vte->flags & FLAG_CURSOR_KEY_MODE) - vte_write(vte, "\e[A", 3); + vte_write(vte, "\eOA", 3); else vte_write(vte, "\e[A", 3); return; case XK_Down: if (vte->flags & FLAG_CURSOR_KEY_MODE) - vte_write(vte, "\e[B", 3); + vte_write(vte, "\eOB", 3); else vte_write(vte, "\e[B", 3); return; case XK_Right: if (vte->flags & FLAG_CURSOR_KEY_MODE) - vte_write(vte, "\e[C", 3); + vte_write(vte, "\eOC", 3); else vte_write(vte, "\e[C", 3); return; -- 2.7.4