From: Bill Nottingham Date: Thu, 27 Jan 2005 18:46:52 +0000 (+0000) Subject: Support for the "default" color in Slang. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5fde217de6c65e37b6e411578f381526f0f63b0;p=neomutt Support for the "default" color in Slang. --- diff --git a/color.c b/color.c index 2d013e734..f7b5d6500 100644 --- a/color.c +++ b/color.c @@ -155,7 +155,7 @@ void ci_start_color (void) #ifdef USE_SLANG_CURSES static char *get_color_name (char *dest, size_t destlen, int val) { - static char * missing[3] = {"brown", "lightgray", ""}; + static char * missing[3] = {"brown", "lightgray", "default"}; int i; switch (val) diff --git a/main.c b/main.c index 45d81c5a3..65792eac0 100644 --- a/main.c +++ b/main.c @@ -451,6 +451,7 @@ static void start_curses (void) #ifdef USE_SLANG_CURSES SLtt_Ignore_Beep = 1; /* don't do that #*$@^! annoying visual beep! */ SLsmg_Display_Eight_Bit = 128; /* characters above this are printable */ + SLtt_set_color(0, NULL, "default", "default"); #else /* should come before initscr() so that ncurses 4.2 doesn't try to install its own SIGWINCH handler */