diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-03-31 14:03:08 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-04-05 10:50:23 +1000 |
commit | 776ef3ee90ecb04b3eff1398bbefd91825864789 (patch) | |
tree | 859b2568c2268dcd8fbc0069f6fc8213c763b78a | |
parent | b30199d97650117108a5b20236b851c12be803ac (diff) | |
download | petitboot-776ef3ee90ecb04b3eff1398bbefd91825864789.zip petitboot-776ef3ee90ecb04b3eff1398bbefd91825864789.tar.gz |
ui/ncurses: Define extra key codes encountered in QEMU
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r-- | ui/ncurses/nc-cui.c | 4 |
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; |