From 68009e98ab7172325da4c5482166a2515a3763ac Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sun, 1 Feb 2015 15:24:43 +0100 Subject: nvramcui: don't wait for the first key update to render the form Flush out the initial screen window and render the form before the first keypress. It looks overly weird otherwise and is very likely unintended. Change-Id: I8700e36e608f2ba115359070f75b7dc9f230291e Signed-off-by: Lubomir Rintel Reviewed-on: http://review.coreboot.org/8526 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- payloads/nvramcui/nvramcui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'payloads/nvramcui') diff --git a/payloads/nvramcui/nvramcui.c b/payloads/nvramcui/nvramcui.c index b0ba699dd1..65435489bb 100644 --- a/payloads/nvramcui/nvramcui.c +++ b/payloads/nvramcui/nvramcui.c @@ -81,6 +81,7 @@ int main() keypad(stdscr, TRUE); cbreak(); noecho(); + start_color(); leaveok(stdscr, TRUE); curs_set(1); @@ -88,6 +89,7 @@ int main() erase(); box(stdscr, 0, 0); mvaddstr(0, 2, "coreboot configuration utility"); + refresh(); /* prep CMOS layout into libcurses data structures */ @@ -188,6 +190,7 @@ int main() done = 0; while(!done) { + render_form(form); ch=getch(); if (ch == ERR) continue; switch (ch) { @@ -225,7 +228,6 @@ int main() form_driver(form, ch); break; } - render_form(form); } for (i = 0; i < numopts; i++) { -- cgit v1.2.3