diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-07-23 01:04:14 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-07-23 01:04:14 -0400 |
commit | eef116fe0730b92d09314c3fae280eeed40b096a (patch) | |
tree | cd165b52ae77296a96193cd4c5ef05ac862ad790 /src/LYCurses.c | |
parent | 36863953e4886d5269a325c93bd433847694a5fb (diff) | |
download | lynx-snapshots-eef116fe0730b92d09314c3fae280eeed40b096a.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-39
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r-- | src/LYCurses.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c index c3968b6d..e12e9683 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -520,7 +520,8 @@ PRIVATE void lynx_init_colors NOARGS if (n == 0 && LYShowColor) bkgd(COLOR_PAIR(9)); } - } + } else + LYShowColor = FALSE; } PUBLIC void lynx_setup_colors NOARGS @@ -574,7 +575,7 @@ PUBLIC void start_curses NOARGS if (slinit == 0) { SLtt_get_terminfo(); - if (Lynx_Color_Flags & SL_LYNX_USE_COLOR) + if (LYShowColor && (Lynx_Color_Flags & SL_LYNX_USE_COLOR)) SLtt_Use_Ansi_Colors = 1; size_change(0); @@ -584,7 +585,7 @@ PUBLIC void start_curses NOARGS * If set, the blink escape sequence will turn on high * intensity background (rxvt and maybe Linux console). */ - if (Lynx_Color_Flags & SL_LYNX_USE_BLINK) + if (LYShowColor && (Lynx_Color_Flags & SL_LYNX_USE_BLINK)) SLtt_Blink_Mode = 1; else SLtt_Blink_Mode = 0; @@ -1495,6 +1496,7 @@ PUBLIC void lynx_force_repaint NOARGS { #if defined(COLOR_CURSES) chtype a = (LYShowColor) ? COLOR_PAIR(9) : A_NORMAL; + bkgdset(a | ' '); bkgd(a | ' '); attrset(a); #endif |