summaryrefslogtreecommitdiffstats
path: root/ui/curses_keys.h
diff options
context:
space:
mode:
authorPeter Maydell2015-11-03 11:20:04 +0100
committerPeter Maydell2015-11-03 11:20:04 +0100
commit130d0bc6594d0cc6591d00312841891b3c187b07 (patch)
treea1082905a667d8aab9296beef46a9ce48f6b478e /ui/curses_keys.h
parentMerge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2015-11-02' into ... (diff)
parentvnc: fix bug: vnc server can't start when 'to' is specified (diff)
downloadqemu-130d0bc6594d0cc6591d00312841891b3c187b07.tar.gz
qemu-130d0bc6594d0cc6591d00312841891b3c187b07.tar.xz
qemu-130d0bc6594d0cc6591d00312841891b3c187b07.zip
Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20151103-1' into staging
ui: fixes for vnc, opengl and curses. # gpg: Signature made Tue 03 Nov 2015 09:53:24 GMT using RSA key ID D3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" * remotes/kraxel/tags/pull-ui-20151103-1: vnc: fix bug: vnc server can't start when 'to' is specified vnc: allow fall back to RAW encoding ui/opengl: Reduce build required libraries for opengl ui/curses: Fix pageup/pagedown on -curses ui/curses: Support line graphics chars on -curses mode ui/curses: Fix monitor color with -curses when 256 colors Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui/curses_keys.h')
-rw-r--r--ui/curses_keys.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/curses_keys.h b/ui/curses_keys.h
index 18ce6dceee..f7467449b9 100644
--- a/ui/curses_keys.h
+++ b/ui/curses_keys.h
@@ -29,8 +29,7 @@
#include "keymaps.h"
-#define KEY_RELEASE 0x80
-#define KEY_MASK 0x7f
+#define KEY_MASK SCANCODE_KEYMASK
#define GREY_CODE 0xe0
#define GREY SCANCODE_GREY
#define SHIFT_CODE 0x2a
@@ -60,6 +59,8 @@ static const int curses2keysym[CURSES_KEYS] = {
['\n'] = KEY_ENTER,
[27] = 27,
[KEY_BTAB] = '\t' | KEYSYM_SHIFT,
+ [KEY_SPREVIOUS] = KEY_PPAGE | KEYSYM_SHIFT,
+ [KEY_SNEXT] = KEY_NPAGE | KEYSYM_SHIFT,
};
static const int curses2keycode[CURSES_KEYS] = {
@@ -149,6 +150,9 @@ static const int curses2keycode[CURSES_KEYS] = {
[KEY_IC] = 82 | GREY, /* Insert */
[KEY_DC] = 83 | GREY, /* Delete */
+ [KEY_SPREVIOUS] = 73 | GREY | SHIFT, /* Shift + Page Up */
+ [KEY_SNEXT] = 81 | GREY | SHIFT, /* Shift + Page Down */
+
['!'] = 2 | SHIFT,
['@'] = 3 | SHIFT,
['#'] = 4 | SHIFT,