path: root/ui/ncurses/nc-cui-help.c
diff options
authorJeremy Kerr <>2014-07-24 15:13:24 +0800
committerJeremy Kerr <>2014-07-28 13:50:35 +0800
commite596e8e66b014161116c207daa8d42cff849bfd2 (patch)
tree5c32aa7165907d85f1d015c058806d5375d6f28c /ui/ncurses/nc-cui-help.c
parent0bacabfe38d4e6721d4b32c11c6ef5bff599492c (diff)
ui/ncurses: Move menu initialisation to cui code
We'll want to re-initialise the petitboot main menu (when the language is changed), which we can't do if the items are populated entirely from the main() function. This change moves the menu initilisation to the cui code, we we can re-init when necessary. Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'ui/ncurses/nc-cui-help.c')
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui-help.c b/ui/ncurses/nc-cui-help.c
new file mode 100644
index 0000000..ac690c5
--- /dev/null
+++ b/ui/ncurses/nc-cui-help.c
@@ -0,0 +1,20 @@
+#include "nc-helpscreen.h"
+struct help_text main_menu_help_text = define_help_text(
+"From the main menu screen, select a boot option. The options displayed are \
+available on the system and the network.\n\
+To select a boot option, press Enter.\n\
+To make changes to an existing option, type E (edit).\n\
+To add a new boot option, type N (new).\n\
+To display information about the system, including the MAC addresses of each \
+network interface, type I (information).\n\
+To make changes to the system configuration, type C (configure).\n\
+To close the Petitboot interface, type X (exit).\n"
OpenPOWER on IntegriCloud