From ba9b09b89ad552700a72c74e335c572422898d76 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 11 Nov 2011 11:05:42 +0100 Subject: [PATCH] libpayload: Enable colors in PDcurses PDcurses wants set_blink to determine color count. Not exactly obvious. Change-Id: I8b2a32f0095d5900fa7e01f04f3f1d565dc2bedf Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/432 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c index 49d66abcb9..f0e83cf3cf 100644 --- a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c +++ b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c @@ -28,5 +28,8 @@ int PDC_curs_set(int visibility) int PDC_set_blink(bool blinkon) { + if (pdc_color_started) + COLORS = 16; + return ERR; }