aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/tui/menu_ui.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-12-07 21:00:09 +0000
committerMichael Brown <mcb30@ipxe.org>2013-12-09 15:34:14 +0000
commit259858950a32862f99b740a4e8cac2954ab34ba9 (patch)
treef12c1adae65b56ff28314b531760c29fe1bc5a59 /src/hci/tui/menu_ui.c
parent7025f5c648aedf744690e9e04257d6dddc94919d (diff)
downloadipxe-259858950a32862f99b740a4e8cac2954ab34ba9.tar.gz
[mucurses] Use centralised concept of colour pairs
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.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/hci/tui/menu_ui.c b/src/hci/tui/menu_ui.c
index d5645b32a..0a9566def 100644
--- a/src/hci/tui/menu_ui.c
+++ b/src/hci/tui/menu_ui.c
@@ -31,13 +31,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/keys.h>
#include <ipxe/timer.h>
#include <ipxe/console.h>
+#include <ipxe/ansicol.h>
#include <ipxe/menu.h>
-#include <config/colour.h>
-
-/* Colour pairs */
-#define CPAIR_NORMAL 1
-#define CPAIR_SELECT 2
-#define CPAIR_SEPARATOR 3
/* Screen layout */
#define TITLE_ROW 1U
@@ -345,9 +340,6 @@ int show_menu ( struct menu *menu, unsigned long timeout,
/* Initialise screen */
initscr();
start_color();
- 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 );
curs_set ( 0 );
erase();