summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-03-31 14:03:08 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-05 10:50:23 +1000
commit776ef3ee90ecb04b3eff1398bbefd91825864789 (patch)
tree859b2568c2268dcd8fbc0069f6fc8213c763b78a /ui
parentb30199d97650117108a5b20236b851c12be803ac (diff)
downloadtalos-petitboot-776ef3ee90ecb04b3eff1398bbefd91825864789.tar.gz
talos-petitboot-776ef3ee90ecb04b3eff1398bbefd91825864789.zip
ui/ncurses: Define extra key codes encountered in QEMU
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/nc-cui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index c975c0f..aa889ea 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -75,10 +75,14 @@ static void cui_start(void)
* Petitboot to exit if they're left undefined */
define_key("\x1b\x5b\x35\x7e", KEY_PPAGE);
define_key("\x1b\x5b\x36\x7e", KEY_NPAGE);
+ define_key("\x1b\x5b\x31\x7e", KEY_HOME);
+ define_key("\x1b\x5b\x34\x7e", KEY_END);
define_key("\x1b\x4f\x48", KEY_HOME);
define_key("\x1b\x4f\x46", KEY_END);
define_key("OH", KEY_HOME);
define_key("OF", KEY_END);
+ define_key("\x1b\x5b\x41", KEY_UP);
+ define_key("\x1b\x5b\x42", KEY_DOWN);
while (getch() != ERR) /* flush stdin */
(void)0;
OpenPOWER on IntegriCloud