summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-boot-editor.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-11 16:35:09 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-11 16:35:09 +0800
commitdbc31f80771461921a0339ff21c11e00203307ec (patch)
tree721b8777d064e86e0039781e2c4868f00431ec7c /ui/ncurses/nc-boot-editor.h
parentbf8d7e61a8fbc19be5ea1a73b9eaa30e58453d1f (diff)
downloadtalos-petitboot-dbc31f80771461921a0339ff21c11e00203307ec.tar.gz
talos-petitboot-dbc31f80771461921a0339ff21c11e00203307ec.zip
ui/ncurses: Use OK & Cancel buttons for boot editor completion
Rather than using enter to complete a boot_editor session, add OK and Cancel buttons. Enter will move between fields. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-boot-editor.h')
-rw-r--r--ui/ncurses/nc-boot-editor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-boot-editor.h b/ui/ncurses/nc-boot-editor.h
index ee6d046..dc849b3 100644
--- a/ui/ncurses/nc-boot-editor.h
+++ b/ui/ncurses/nc-boot-editor.h
@@ -63,6 +63,7 @@ struct boot_editor {
struct nc_scr scr;
FORM *ncf;
FIELD **fields;
+ FIELD *button_ok, *button_cancel;
void *data;
struct pmenu *original_pmenu;
void (*on_exit)(struct boot_editor *boot_editor,
OpenPOWER on IntegriCloud