From 1b0c3526751b750e3cbfaf317e1eaf8d39fe3ba8 Mon Sep 17 00:00:00 2001 From: Dave Frodin Date: Wed, 5 Dec 2012 17:26:03 -0700 Subject: 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 Reviewed-on: http://review.coreboot.org/1984 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Marc Jones --- payloads/coreinfo/coreinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'payloads/coreinfo/coreinfo.c') 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); -- cgit v1.2.3