diff options
Diffstat (limited to 'src/LYReadCFG.h')
-rw-r--r-- | src/LYReadCFG.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/LYReadCFG.h b/src/LYReadCFG.h index 7cf805c0..5e94f0d8 100644 --- a/src/LYReadCFG.h +++ b/src/LYReadCFG.h @@ -11,6 +11,32 @@ #define NO_COLOR -2 #define ERR_COLOR -3 +/* Note: the sense of colors that Lynx uses for defaults is the reverse of + * the standard for color-curses. + */ +#ifdef USE_DEFAULT_COLORS +# ifdef USE_SLANG +# define DEFAULT_FG "default" +# define DEFAULT_BG "default" +# else +# ifdef HAVE_USE_DEFAULT_COLORS +# define DEFAULT_FG DEFAULT_COLOR +# define DEFAULT_BG DEFAULT_COLOR +# else +# define DEFAULT_FG COLOR_BLACK +# define DEFAULT_BG COLOR_WHITE +# endif +# endif +#else +# ifdef USE_SLANG +# define DEFAULT_FG "black" +# define DEFAULT_BG "white" +# else +# define DEFAULT_FG COLOR_BLACK +# define DEFAULT_BG COLOR_WHITE +# endif +#endif /* USE_DEFAULT_COLORS */ + extern int default_fg; extern int default_bg; |