[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Irix compile problem -- ENTER key
From: |
dickey |
Subject: |
Re: lynx-dev Irix compile problem -- ENTER key |
Date: |
Sun, 22 Nov 1998 20:38:08 -0500 (EST) |
> On Sun, 22 Nov 1998 address@hidden wrote:
>
> > well, it's an obvious defect in IRIX's terminfo description, for which
> > there's an easy workaround. So I'll have to stick with the latter (it's
> > the curses library which is deciding which string is KEY_ENTER, not Lynx).
>
> It is the terminfo description which comes with ncurses AFAIK.
that particular one does - but in general IRIX's terminfo entries aren't
wholly incorporated into ncurses (there's an interesting story - but
outside the scope of this mailing list)
> Is there anything wrong with this trivial addition to LYStrings.c,
> which probably should have been there anyway?
probably not - unless of course there was some place that Lynx should
distinguish the two (none comes to mind).
> Klaus
>
> *** ../lynx2-8-1-cs/src/LYStrings.c Tue Sep 22 06:05:12 1998
> --- ../lynx2-8-1/src/LYStrings.c Sun Nov 22 09:56:53 1998
> ***************
> *** 1060,1065 ****
> --- 1060,1070 ----
> case KEY_C3: /* lower right of keypad */
> c = PGDOWN;
> break;
> + #ifdef KEY_ENTER
> + case KEY_ENTER: /* Enter or send (unreliable) */
> + c = '\n';
> + break;
> + #endif /* KEY_ENTER */
> #ifdef KEY_END
> case KEY_END: /* end key 001 */
> c = END_KEY;
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey