summaryrefslogtreecommitdiff
path: root/payloads/nvramcui
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-02-01 15:24:43 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-02-25 21:06:15 +0100
commit68009e98ab7172325da4c5482166a2515a3763ac (patch)
treed528ef2c6a95b6e7477b1eae840baad5faafacd8 /payloads/nvramcui
parenta63da6f97e54f102f068c19befbd6072c13a00f7 (diff)
downloadcoreboot-68009e98ab7172325da4c5482166a2515a3763ac.tar.xz
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 <lkundrak@v3.sk> Reviewed-on: http://review.coreboot.org/8526 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/nvramcui')
-rw-r--r--payloads/nvramcui/nvramcui.c4
1 files changed, 3 insertions, 1 deletions
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++) {