Honor the default terminal foreground and background - noice - small file browser (mirror / fork from 2f30.org)
 (HTM) git clone git://git.codemadness.org/noice
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b79ccad126783cdc55aab2580bbc3a85da44fb8d
 (DIR) parent 6e3bbd735d76ea3144694972c5eacab32e4e7868
 (HTM) Author: Lazaros Koromilas <lostd@2f30.org>
       Date:   Sun,  3 Feb 2019 22:31:59 +0200
       
       Honor the default terminal foreground and background
       
       Diffstat:
         M config.def.h                        |      12 ++++++------
         M noice.c                             |       1 +
       
       2 files changed, 7 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       @@ -29,12 +29,12 @@ char *idlecmd   = "rain"; /* The screensaver program */
        struct cpair pairs[] = {
                { .fg = 0, .bg = 0 },
                /* pairs start at 1 */
       -        { COLOR_RED,     0 },
       -        { COLOR_GREEN,   0 },
       -        { COLOR_YELLOW,  0 },
       -        { COLOR_BLUE,    0 },
       -        { COLOR_MAGENTA, 0 },
       -        { COLOR_CYAN,    0 },
       +        { COLOR_RED,     -1 },
       +        { COLOR_GREEN,   -1 },
       +        { COLOR_YELLOW,  -1 },
       +        { COLOR_BLUE,    -1 },
       +        { COLOR_MAGENTA, -1 },
       +        { COLOR_CYAN,    -1 },
        };
        
        struct assoc assocs[] = {
 (DIR) diff --git a/noice.c b/noice.c
       @@ -303,6 +303,7 @@ initcolor(void)
                int i;
        
                start_color();
       +        use_default_colors();
                for (i = 1; i < LEN(pairs); i++)
                        init_pair(i, pairs[i].fg, pairs[i].bg);
        }