]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Define extra key codes encountered in QEMU
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 31 Mar 2016 03:03:08 +0000 (14:03 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 5 Apr 2016 00:50:23 +0000 (10:50 +1000)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
ui/ncurses/nc-cui.c

index c975c0f126e0095bc0f65db3b29d2dadd65835e0..aa889ea9d127ba24c64bffca6eb92f73b4aa6f93 100644 (file)
@@ -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;