From 5edfdd5dc8806fb6520ee698f42d269143ad5c45 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 6 Dec 2016 17:23:28 +1100 Subject: 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 Signed-off-by: Samuel Mendoza-Jonas --- ui/ncurses/nc-menu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/ncurses/nc-menu.c') 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) -- cgit v1.2.1