lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Lynx and Cygwin [PATCH]


From: Doug Kaufman
Subject: Re: lynx-dev Lynx and Cygwin [PATCH]
Date: Wed, 17 Apr 2002 20:05:20 -0700 (PDT)

On Tue, 16 Apr 2002, Thomas E. Dickey wrote:

> On Tue, 16 Apr 2002, Frédéric L. W. Meunier wrote:
> 
> > 1- Home and End keys don't work.
> 
> I see that too.  But they work in my standalone ncurses test program.
> (I'm looking at the cygwin package for lynx - my win32 compiles have
> been mostly for PDCurses, though I did test-compile lynx for cygwin and
> U/Win last year).

I investigated and found that this is a problem from one of my old
patches to LYKeymap.c. It turns out that the HOME and END keys are
mapped to FIND and SELECT by LYStrings.c before ncurses gets to
interpret the sequence as HOME and END. I had made FIND and SELECT
null operations for Cygwin, since there are no FIND or SELECT keys
on the PC keyboard. This patch should fix it. I made it against a
2.8.5dev.2 that I had on the machine at which I was working, but I
don't think there have been any changes to the file since then.
                        Doug


--- lynx2.8.5dev.2/lynx2-8-5/src/LYKeymap.c.orig        Sun Jun  3 12:58:00 2001
+++ lynx2.8.5dev.2/lynx2-8-5/src/LYKeymap.c     Wed Apr 17 19:40:22 2002
@@ -216,7 +216,7 @@
 LYK_NEXT_PAGE,    LYK_PREV_PAGE,    LYK_HOME,       LYK_END,
 /* PGDOWN */      /* PGUP */        /* HOME */      /* END */
 
-#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__))
+#if (defined(_WINDOWS) || defined(__DJGPP__))
 
 LYK_DWIMHELP,          0,              0,             0,
 /* F1*/
@@ -225,7 +225,7 @@
 LYK_DWIMHELP,     LYK_ACTIVATE,     LYK_HOME,       LYK_END,
 /* F1*/          /* Do key */      /* Find key */  /* Select key */
 
-#endif /* _WINDOWS || __DJGPP__ || __CYGWIN__ */
+#endif /* _WINDOWS || __DJGPP__ */
 
 LYK_UP_TWO,       LYK_DOWN_TWO,     LYK_DO_NOTHING, LYK_FASTBACKW_LINK,
 /* Insert key */  /* Remove key */  /* DO_NOTHING*/ /* Back tab */
__ 
Doug Kaufman
Internet: address@hidden


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

reply via email to

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