diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-06 17:23:28 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 15:04:21 +1100 |
commit | 5edfdd5dc8806fb6520ee698f42d269143ad5c45 (patch) | |
tree | 4357c1d72dbc664b42179757e5a5a0ddb493654b /ui/ncurses/nc-menu.c | |
parent | 211d7eb1de2d3a9cd97846deb9a85a934dae2981 (diff) | |
download | talos-petitboot-5edfdd5dc8806fb6520ee698f42d269143ad5c45.tar.gz talos-petitboot-5edfdd5dc8806fb6520ee698f42d269143ad5c45.zip |
ui/ncurses: Add status log UI
Currently, status messages from the server are displayed in a single
line at the bottom of the main menu UI, and are lost once a new status
is reported.
This change adds a facility for the UI to collect and display the status
messages from the server, in a dedicated UI screen. This allows a user
to look back through the discovery & boot process.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui/ncurses/nc-menu.c')
-rw-r--r-- | ui/ncurses/nc-menu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c index 723d348..90a2c0a 100644 --- a/ui/ncurses/nc-menu.c +++ b/ui/ncurses/nc-menu.c @@ -418,6 +418,9 @@ static void pmenu_process_key(struct nc_scr *scr, int key) case 'l': cui_show_lang(cui_from_arg(scr->ui_ctx)); break; + case 'g': + cui_show_statuslog(cui_from_arg(scr->ui_ctx)); + break; case KEY_F(1): case 'h': if (menu->help_text) |