From ded05bb5d336d12cb4142946813fe2e04b688872 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 4 Mar 2012 19:55:38 +0000 Subject: [PATCH] NCurses: support default colors --- src/ncurses.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ncurses.cc b/src/ncurses.cc index 5e2a3c817..becb8efe2 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -36,7 +36,7 @@ static int nc_color(Color color) case Color::Default: default: - return COLOR_BLACK; + return -1; } } @@ -326,6 +326,7 @@ void init(PromptFunc& prompt_func, GetKeyFunc& get_key_func) keypad(stdscr, true); curs_set(0); start_color(); + use_default_colors(); ESCDELAY=25; prompt_func = prompt;