libpayload: Enable colors in PDcurses
authorPatrick Georgi <patrick.georgi@secunet.com>
Fri, 11 Nov 2011 10:05:42 +0000 (11:05 +0100)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 11 Nov 2011 17:24:48 +0000 (18:24 +0100)
PDcurses wants set_blink to determine color count. Not exactly
obvious.

Change-Id: I8b2a32f0095d5900fa7e01f04f3f1d565dc2bedf
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/432
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c

index 49d66abcb9e5506b4730055593b2fe619a5d5f54..f0e83cf3cfbb4d51c781a311759e84925acf98fa 100644 (file)
@@ -28,5 +28,8 @@ int PDC_curs_set(int visibility)
 
 int PDC_set_blink(bool blinkon)
 {
+       if (pdc_color_started)
+               COLORS = 16;
+
        return ERR;
 }