summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2012-12-05 17:26:03 -0700
committerMarc Jones <marcj303@gmail.com>2012-12-07 20:43:13 +0100
commit1b0c3526751b750e3cbfaf317e1eaf8d39fe3ba8 (patch)
treeb6e1255b3f1d56600955493d4dbcdc9644f833df /payloads
parentcbf3d407b8d943395f67d023795effe8f307b8c9 (diff)
downloadcoreboot-1b0c3526751b750e3cbfaf317e1eaf8d39fe3ba8.tar.xz
coreinfo: change the foreground/background colors
The default curses library changed from tinycurses to PDCurses. PDCurses fails to fill the entire active screen with the assigned background colors when it writes 'blank' chars. This will allow the menues to look better until I resolve that. Change-Id: I70b5331d16dd0abaa1f0b02b725571844b7ac15e Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/1984 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/coreinfo/coreinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c
index 846cf77c18..7e8b201fb6 100644
--- a/payloads/coreinfo/coreinfo.c
+++ b/payloads/coreinfo/coreinfo.c
@@ -273,9 +273,10 @@ int main(void)
initscr();
+ start_color();
init_pair(1, COLOR_WHITE, COLOR_GREEN);
- init_pair(2, COLOR_BLACK, COLOR_WHITE);
- init_pair(3, COLOR_WHITE, COLOR_WHITE);
+ init_pair(2, COLOR_WHITE, COLOR_BLACK);
+ init_pair(3, COLOR_BLACK, COLOR_WHITE);
modwin = newwin(SCREEN_Y - 3, SCREEN_X, 1, 0);
menuwin = newwin(2, SCREEN_X, SCREEN_Y - 2, 0);