diff options
author | Christian Hesse <list@eworm.de> | 2012-06-27 18:39:46 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-06-27 18:40:17 +0100 |
commit | 512ed2b921e89a5e5208a7c6ddb9837b0d184a3e (patch) | |
tree | 00d7a4a1affc024b076e1f29fe52d98128e8ce06 /src/hci/tui/menu_ui.c | |
parent | 567b9bf9e78cdf904f8e885465cf03afd0d541ba (diff) | |
download | ipxe-512ed2b921e89a5e5208a7c6ddb9837b0d184a3e.tar.gz |
[ui] Allow colours to be configured via config/colour.h
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui/menu_ui.c')
-rw-r--r-- | src/hci/tui/menu_ui.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hci/tui/menu_ui.c b/src/hci/tui/menu_ui.c index 30d93ad2f..616256228 100644 --- a/src/hci/tui/menu_ui.c +++ b/src/hci/tui/menu_ui.c @@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/timer.h> #include <ipxe/console.h> #include <ipxe/menu.h> +#include <config/colour.h> /* Colour pairs */ #define CPAIR_NORMAL 1 @@ -339,9 +340,9 @@ int show_menu ( struct menu *menu, unsigned int timeout_ms, /* Initialise screen */ initscr(); start_color(); - init_pair ( CPAIR_NORMAL, COLOR_WHITE, COLOR_BLUE ); - init_pair ( CPAIR_SELECT, COLOR_WHITE, COLOR_RED ); - init_pair ( CPAIR_SEPARATOR, COLOR_CYAN, COLOR_BLUE ); + init_pair ( CPAIR_NORMAL, COLOR_NORMAL_FG, COLOR_NORMAL_BG ); + init_pair ( CPAIR_SELECT, COLOR_SELECT_FG, COLOR_SELECT_BG ); + init_pair ( CPAIR_SEPARATOR, COLOR_SEPARATOR_FG, COLOR_SEPARATOR_BG ); color_set ( CPAIR_NORMAL, NULL ); erase(); |