projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4375dc
)
vte: fix application cursor keys
author
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 14 Jul 2012 17:34:04 +0000
(19:34 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 14 Jul 2012 17:34:04 +0000
(19:34 +0200)
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 <dh.herrmann@googlemail.com>
src/vte.c
patch
|
blob
|
history
diff --git
a/src/vte.c
b/src/vte.c
index
3ad7565
..
bb0d5a8
100644
(file)
--- 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, "\e
O
A", 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, "\e
O
B", 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, "\e
O
C", 3);
else
vte_write(vte, "\e[C", 3);
return;