diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-18 12:25:58 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-18 12:25:58 -0400 |
commit | d2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c (patch) | |
tree | 9f98081fe52ddab37286a6208c66d3e7f14f216b /src/LYCurses.c | |
parent | dc9e683bddf52e0720f5e74e3349533c9ee9f97a (diff) | |
download | lynx-snapshots-d2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-68
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r-- | src/LYCurses.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c index e4a7718a..f609100e 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -35,7 +35,10 @@ extern int _NOSHARE(COLS); #ifdef USE_COLOR_STYLE #include "AttrList.h" #include "LYHash.h" -int has_color = 0; +#endif + +#if defined(COLOR_CURSES) +int lynx_uses_color = 0; #endif /* @@ -208,7 +211,7 @@ PRIVATE int LYAttrset ARGS3(WINDOW*,win,int,color,int,mono) { if (TRACE) fprintf(stderr, "CSS:LYAttrset (%d, %d)\n", color, mono); - if (has_color && LYShowColor >= SHOW_COLOR_ON && color > -1) + if (lynx_uses_color && LYShowColor >= SHOW_COLOR_ON && color > -1) { wattrset(win,color); #if 0 @@ -360,7 +363,6 @@ void attribute ARGS2(int,style,int,dir) * special case of initialization before 'initscr()' is called. * 1997/1/19 - T.E.Dickey <dickey@clark.net> */ -PRIVATE int lynx_uses_color; PRIVATE int lynx_called_initscr; PRIVATE struct { @@ -702,8 +704,8 @@ PUBLIC void start_curses NOARGS #endif #ifdef USE_COLOR_STYLE - has_color = has_colors(); - if (has_color) + lynx_uses_color = has_colors(); + if (lynx_uses_color) start_color(); parse_userstyles(); #endif |