lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Background Colors with the binary for Windows


From: patakuti
Subject: lynx-dev Background Colors with the binary for Windows
Date: Sun, 12 Jan 2003 00:28:02 +0900 (JST)

Some colors don't seem to be selected as background colors with the
binary for Windows.  For example,
    COLOR:0:black:white
seems to be equivalent to 
    COLOR:0:black:lightgray

On the other hand, all colors can be selected as foreground colors
as expected.

I wrote an ad hoc patch to improve the above problem, though I don't
know exactly how they should be treated.
--
Takeshi Hataguchi
E-mail: address@hidden

diff -ru orig/lynx2-8-5/src/LYCurses.c lynx2-8-5/src/LYCurses.c
--- orig/lynx2-8-5/src/LYCurses.c       Mon Dec  2 11:07:38 2002
+++ lynx2-8-5/src/LYCurses.c    Sun Jan  5 00:00:56 2003
@@ -686,9 +686,15 @@
 {
     if (fg == ERR_COLOR || bg == ERR_COLOR) return -1;
     if (color >= 0 && color < 8) {
+#if defined(_WINDOWS) && defined(PDCURSES)
+       lynx_color_cfg[color].fg = fg;
+       lynx_color_cfg[color].bg = bg;
+       lynx_color_cfg[color].attr = A_NORMAL;
+#else
        lynx_color_cfg[color].fg = (fg > 7) ? (fg & 7) : fg;
        lynx_color_cfg[color].bg = (bg > 7) ? (bg & 7) : bg;
        lynx_color_cfg[color].attr = ((fg > 7) && (fg & 8)) ? A_BOLD : A_NORMAL;
+#endif
        lynx_map_color(color);
     } else {
        return -1;

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]