From b6f483006a9d9f7780bc54b23aa8ff55f7b0ec53 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 27 Jan 2005 18:46:52 +0000 Subject: [PATCH] Support for the "default" color in Slang. --- color.c | 2 +- main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/color.c b/color.c index 2d013e73..f7b5d650 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 45d81c5a..65792eac 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 */ -- 2.40.0