[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev color OFF does not work with slang
From: |
Carlton Anderson |
Subject: |
Re: lynx-dev color OFF does not work with slang |
Date: |
Wed, 27 Nov 2002 18:18:51 -0800 (PST) |
--- Sean McGuire <address@hidden> wrote:
> I have a problem that I hope someone here can help me with.
>
> I have compiled both lynx2.8.5dev.9 and 2.8.4 --with-screen=slang
> and --enable-default-colors for i386 3.0 Debian Linux (kernel 2.4.18); I
> have tried both slang-1.4.4 and slang-1.4.6.
>
> Whenever the "Show color" option is set to OFF using the options screen, the
> display refreshes with/changes to color, no matter what the terminal type.
> This results in color activating just by visiting the options page and
> choosing "Accept Changes". The color can be forced off with the NEVER
> option. Using the -nocolor command line option starts the application in
> monochrome, but exhibits the same problem when visiting the Options page.
>
I was able to reproduce the bug and,
I think I've found the problem with the
(O)ptions menu and slang.
Here is a patch that seems to solve the
problem:
------------------->start of patch<-------------------
Index: LYOptions.c
===================================================================
RCS file: /usr/local/cvsroot/web/lynx2-8-5/src/LYOptions.c,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 LYOptions.c
2694c2694,2696
< SLtt_Use_Ansi_Colors = (LYShowColor > 1 ? 1 : 0);
---
> /* CA change: modified to remove color bug under slang. */
> /* SLtt_Use_Ansi_Colors = (LYShowColor > 1 ? 1 : 0); */
> SLtt_Use_Ansi_Colors = ((LYShowColor >= SHOW_COLOR_ON) ? 1 : 0 );
------------------->end of patch<-------------------
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden