No colors by default - 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 7e8495803964d3acc920cc79a03089db78278290 (DIR) parent 4799ca8afd18a7443bdb4faff2ce2c5cd02b84e8 (HTM) Author: dok <dok@grehack.fr> Date: Sat, 19 Jan 2019 18:43:02 +0100 No colors by default Diffstat: M config.def.h | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) --- (DIR) diff --git a/config.def.h b/config.def.h @@ -10,12 +10,21 @@ int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ int showhidden = 0; /* Set to 1 to show hidden files by default */ char *idlecmd = "rain"; /* The screensaver program */ +#ifdef USE_COLOR #define CURSR_ATTR A_REVERSE #define DIR_ATTR A_BOLD | COLOR_PAIR(4) #define LINK_ATTR A_BOLD | COLOR_PAIR(6) #define SOCK_ATTR A_BOLD | COLOR_PAIR(1) #define FIFO_ATTR A_BOLD | COLOR_PAIR(5) #define EXEC_ATTR A_BOLD | COLOR_PAIR(2) +#else +#define CURSR_ATTR A_REVERSE +#define DIR_ATTR A_BOLD +#define LINK_ATTR A_BOLD +#define SOCK_ATTR A_BOLD +#define FIFO_ATTR A_BOLD +#define EXEC_ATTR A_BOLD +#endif struct cpair pairs[] = { { .fg = 0, .bg = 0 },