- int result;
- struct pmenu *m;
- struct pmenu_item *i;
-
- m = pmenu_init(pb_cui->cui, 1, cui_on_exit);
-
- if (!m) {
- pb_log("%s: failed\n", __func__);
- return NULL;
- }
-
- 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,
- "Enter=accept, e=edit, n=new, x=exit");
- m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot");