]> granicus.if.org Git - neomutt/commitdiff
Support for the "default" color in Slang.
authorBill Nottingham <notting@redhat.com>
Thu, 27 Jan 2005 18:46:52 +0000 (18:46 +0000)
committerBill Nottingham <notting@redhat.com>
Thu, 27 Jan 2005 18:46:52 +0000 (18:46 +0000)
color.c
main.c

diff --git a/color.c b/color.c
index 2d013e734c86cb7a074bd9d7f2ca98773200e92c..f7b5d650038a640c642c17ad9919a07015abe8f2 100644 (file)
--- 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 45d81c5a37981b6055c41c4e937ba721fc17571b..65792eac071b882ad26db79af1d8e04a3136508d 100644 (file)
--- 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 */