lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV transparent background


From: SUNAGAWA Keiki
Subject: Re: LYNX-DEV transparent background
Date: Fri, 13 Feb 1998 23:36:33 +0900

"T.E.Dickey" <address@hidden> wrote:

Thomas> To the list.  If it looks ok, I'll test it.  (The
Thomas> development version already does this for ncurses in
Thomas> the color-style code, so I'd look also to see how
Thomas> much integration it would take).

It's cool.  It's attached  below, anyway.

--> but right now, the priority is on character sets, so be
--> patient...

Hmm, I'd like to help some that lynx handle ISO-2022
encoding.

--
SUNAGAWA Keiki <address@hidden>
Happy Hacking!

*** src/LYCurses.c.orig Sat Dec 13 20:27:44 1997
--- src/LYCurses.c      Fri Feb 13 18:20:43 1998
***************
*** 100,116 ****
  
  PUBLIC void lynx_setup_colors NOARGS
  {
!     SLtt_set_color(0, NULL, "black", "white");
!     SLtt_set_color(1, NULL, "blue", "white");  /* bold */
!     SLtt_set_color(2, NULL, "yellow", "blue");         /* reverse */
!     SLtt_set_color(4, NULL, "magenta", "white"); /* underline */
      /*
       *  The other objects are '|'ed together to get rest.
       */
!     SLtt_set_color(3, NULL, "green", "white");         /* bold-reverse */
!     SLtt_set_color(5, NULL, "blue", "white");    /* bold-underline */
!     SLtt_set_color(6, NULL, "red", "white");   /* reverse-underline */
!     SLtt_set_color(7, NULL, "magenta", "cyan");        /* 
reverse-underline-bold */
  
      /*
       *  Now set monchrome attributes.
--- 100,116 ----
  
  PUBLIC void lynx_setup_colors NOARGS
  {
!     SLtt_set_color(0, NULL, "black", "default");
!     SLtt_set_color(1, NULL, "blue", "default");          /* bold */
!     SLtt_set_color(2, NULL, "yellow", "blue");           /* reverse */
!     SLtt_set_color(4, NULL, "magenta", "default"); /* underline */
      /*
       *  The other objects are '|'ed together to get rest.
       */
!     SLtt_set_color(3, NULL, "green", "default");   /* bold-reverse */
!     SLtt_set_color(5, NULL, "blue", "default");    /* bold-underline */
!     SLtt_set_color(6, NULL, "red", "default");           /* reverse-underline 
*/
!     SLtt_set_color(7, NULL, "magenta", "cyan");          /* 
reverse-underline-bold */
  
      /*
       *  Now set monchrome attributes.
--- src/LYReadCFG.c.orig        Thu Nov 27 15:00:18 1997
+++ src/LYReadCFG.c     Fri Feb 13 18:13:25 1998
@@ -25,6 +25,8 @@
 
 #define FREE(x) if (x) {free(x); x = NULL;}
 
+#define MAXCOLORS 17
+
 extern int HTNewsMaxChunk;  /* Max news articles before chunking (HTNews.c) */
 extern int HTNewsChunkSize; /* Number of news articles per chunk (HTNews.c) */
 
@@ -275,7 +277,7 @@
 }
 
 #ifdef USE_SLANG
-static char *Color_Strings[16] =
+static char *Color_Strings[MAXCOLORS] =
 {
     "black",
     "red",
@@ -292,7 +294,8 @@
     "brightblue",
     "brightmagenta",
     "brightcyan",
-    "white"
+    "white",
+    "default"
 };
 
 /*
@@ -303,7 +306,7 @@
 {
     int i;
 
-    for (i = 0; i < 16; i++) {
+    for (i = 0; i < MAXCOLORS; i++) {
        if (!strcmp(color, Color_Strings[i]))
            return 0;
     }
@@ -323,7 +326,7 @@
 COLOR:INTEGER:FOREGROUND:BACKGROUND\n\
 \n\
 Here FOREGROUND and BACKGROUND must be one of:\n");
-    for (i = 0; i < 16; i += 4) {
+    for (i = 0; i < MAXCOLORS; i += 4) {
        fprintf(stderr, "%16s %16s %16s %16s\n",
                Color_Strings[i], Color_Strings[i + 1],
                Color_Strings[i + 2], Color_Strings[i + 3]);

reply via email to

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