NCurses: support default colors

This commit is contained in:
Maxime Coste 2012-03-04 19:55:38 +00:00
parent d91ac911e7
commit ded05bb5d3

View File

@ -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;