lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev color parsing patch


From: Bela Lubkin
Subject: lynx-dev color parsing patch
Date: Thu, 8 Oct 1998 19:35:42 -0700

This should go into 2.8.1.  Without this,

  COLOR:0:foo:bar

configures Lynx to use bad colors; with it, you get:

" Syntax Error parsing COLOR in configuration file:
" The line must be of the form:
" COLOR:INTEGER:FOREGROUND:BACKGROUND
" 
" Here FOREGROUND and BACKGROUND must be one of:
" The special strings 'nocolor' or 'default', or
"            black              red            green            brown
"             blue          magenta             cyan        lightgray
"             gray        brightred      brightgreen           yellow
"       brightblue    brightmagenta       brightcyan            white
" Offending line:
" 0:foo:bar

(as intended by the source).

>Bela<

*** LYCurses.c.orig     Sun Oct  4 18:27:15 1998
--- LYCurses.c  Thu Oct  8 19:26:05 1998
***************
*** 535,540 ****
--- 535,541 ----
        int, bg
        )
  {
+     if (fg == ERR_COLOR || bg == ERR_COLOR) return -1;
      if (color >= 0 && color < 8) {
        lynx_color_cfg[color].fg = (fg > 7) ? (fg & 7) : fg;
        lynx_color_cfg[color].bg = (bg > 7) ? (bg & 7) : bg;

reply via email to

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