diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-11-11 11:05:42 +0100 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-11-11 18:24:48 +0100 |
commit | ba9b09b89ad552700a72c74e335c572422898d76 (patch) | |
tree | 978af8868a8177676fa9d042b70da37b189c5e96 /payloads/libpayload | |
parent | 50dadfb1f8f8f9e1a0ea692652ae6b60b29a9f7e (diff) | |
download | coreboot-ba9b09b89ad552700a72c74e335c572422898d76.tar.xz |
libpayload: Enable colors in PDcurses
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>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |