lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Bugs in ac102 (at least for DOS)


From: Doug Kaufman
Subject: Re: LYNX-DEV Bugs in ac102 (at least for DOS)
Date: Mon, 22 Dec 1997 23:33:52 -0800 (PST)

On Mon, 22 Dec 1997, I wrote:

> On Mon, 22 Dec 1997, T.E.Dickey wrote:
> 
> > I made the changes because it moves the use in PDCurses of non-ANSI color
> > out of sight, so to speak - it'd be nice if the PDCurses-related stuff was
> > ifdef'd with something more descriptive than DOSPATH, but I've not had time
> > or resources to build up a version on djgpp (someday...)
> > 
> > but restoring the table isn't the way to go -- let's try to fix it rather
> > than simply putting back the previous version.
> 
> I think that I need to disagree somewhat.  It is nice to have elegant

Despite my thought that working code should be left alone, the following
patch to Tom's changes in LYReadCFG.c  restores color appropriately to
DOS.  I don't think that other operating systems will be adversely
affected.
                             Doug

*** lynx2-7-1/src/LYReadCFG.c   Sun Dec 14 14:41:28 1997
--- lynx2-7-1/src/LYReadCFG.c.new       Mon Dec 22 23:15:18 1997
***************
*** 329,338 ****
        static int map[] = {
                0,  4,  2,  6, 1,  5,  3,  7,
                8, 12, 10, 14, 9, 13, 11, 15 };
!       return map[n];
  }
  #else
! #define ColorCode(n) (n)
  #endif
  
  /*
--- 329,338 ----
        static int map[] = {
                0,  4,  2,  6, 1,  5,  3,  7,
                8, 12, 10, 14, 9, 13, 11, 15 };
!       return map[color];
  }
  #else
! #define ColorCode(color) (color)
  #endif
  
  /*
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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