summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/Makefile.am1
-rw-r--r--ui/ncurses/nc-sysinfo-help.c3
-rw-r--r--ui/ncurses/nc-sysinfo.c4
3 files changed, 8 insertions, 0 deletions
diff --git a/ui/ncurses/Makefile.am b/ui/ncurses/Makefile.am
index 5389ed9..3251489 100644
--- a/ui/ncurses/Makefile.am
+++ b/ui/ncurses/Makefile.am
@@ -43,6 +43,7 @@ libpbnc_la_SOURCES = \
nc-scr.h \
nc-sysinfo.c \
nc-sysinfo.h \
+ nc-sysinfo-help.c \
nc-textscreen.c \
nc-textscreen.h \
nc-widgets.c \
diff --git a/ui/ncurses/nc-sysinfo-help.c b/ui/ncurses/nc-sysinfo-help.c
new file mode 100644
index 0000000..22b470d
--- /dev/null
+++ b/ui/ncurses/nc-sysinfo-help.c
@@ -0,0 +1,3 @@
+const char *sysinfo_help_text = "\
+This screen shows general information about the system, for use when \
+configuring boot behaviour.\n";
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c
index e907e3d..aa1daea 100644
--- a/ui/ncurses/nc-sysinfo.c
+++ b/ui/ncurses/nc-sysinfo.c
@@ -34,6 +34,8 @@ struct sysinfo_screen {
struct text_screen text_scr;
};
+extern const char *sysinfo_help_text;
+
struct nc_scr *sysinfo_screen_scr(struct sysinfo_screen *screen)
{
return text_screen_scr(&screen->text_scr);
@@ -111,6 +113,8 @@ struct sysinfo_screen *sysinfo_screen_init(struct cui *cui,
screen = talloc_zero(cui, struct sysinfo_screen);
text_screen_init(&screen->text_scr, cui,
"Petitboot System Information", on_exit);
+ text_screen_set_help(&screen->text_scr,
+ "System Information", sysinfo_help_text);
sysinfo_screen_update(screen, sysinfo);
OpenPOWER on IntegriCloud