]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/generic-main.c
ui/ncurses: Use 'x' as exit key
[petitboot] / ui / ncurses / generic-main.c
index c40ebabb124e5fb89cd719c86a4082670df192be..49a96cb0037f108a7e5b76228877638b04520ab4 100644 (file)
@@ -143,13 +143,13 @@ static struct pmenu *pb_mm_init(struct pb_cui *pb_cui)
                return NULL;
        }
 
-       m->on_open = cui_on_open;
+       m->on_new = cui_item_new;
 
        m->scr.frame.ltitle = talloc_asprintf(m,
                "Petitboot (" PACKAGE_VERSION ")");
        m->scr.frame.rtitle = NULL;
        m->scr.frame.help = talloc_strdup(m,
-               "ESC=exit, Enter=accept, e=edit, n=new");
+               "Enter=accept, e=edit, n=new, x=exit");
        m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot");
 
        i = pmenu_item_init(m, 0, "Exit to Shell");