Introduction
Introduction Statistics Contact Development Disclaimer Help
Honor the default terminal foreground and background - noice - small file brows…
git clone git://git.codemadness.org/noice
Log
Files
Refs
README
LICENSE
---
commit b79ccad126783cdc55aab2580bbc3a85da44fb8d
parent 6e3bbd735d76ea3144694972c5eacab32e4e7868
Author: Lazaros Koromilas <[email protected]>
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(-)
---
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[] = {
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);
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.