X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ui%2Fncurses%2Fgeneric-main.c;h=49a96cb0037f108a7e5b76228877638b04520ab4;hb=20be68872f056457b99cc64164171901be4bc5a3;hp=9236a800beac18a11d1041037955687f109364c6;hpb=307b4b091e0bc298964e90888bf179431e32c134;p=petitboot diff --git a/ui/ncurses/generic-main.c b/ui/ncurses/generic-main.c index 9236a80..49a96cb 100644 --- a/ui/ncurses/generic-main.c +++ b/ui/ncurses/generic-main.c @@ -143,12 +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.title = talloc_asprintf(m, + 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, o=open"); + "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");