lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev partial message (was Re: Changing the keymap code (PATCH))


From: Doug Kaufman
Subject: Re: lynx-dev partial message (was Re: Changing the keymap code (PATCH))
Date: Sun, 7 Feb 1999 15:59:37 -0800 (PST)

On Sun, 7 Feb 1999, Klaus Weide wrote:

> The copy of the message quoted below distributed to lynx-dev was corrupt,
> the first 10 lines were missing.  This can also be seen in the archived
> copy at <http://www.flora.org/lynx-dev/html/month0299/msg00246.html>.
> ...
> > 
> > I have this in my .lynx-keymaps file:

Sorry. When the post came through without the initial lines, I thought
this was at the command line. Please ignore my initial reply.

> > setkey "^[^[" LTARROW
> > setkey "\200s" 0x211        # C-left

I looked at the lynx users guide, lynx.cfg, and userdefs.h. I can't
find a reference to ".lynx-keymaps" or to "setkey". I see the code in
LYStrings.c. It appears to apply only with SLang (except for DJGPP)
or with (NCURSES and HAVE_DEFINE_KEY). If I understand this properly,
you need to know the code that your keyboard emits for a key to do the
mapping.

I was confused by the SLang keysym code in the past and have DJGPP set
to not use USE_KEYMAPS with SLang. The file for DJGPP is _lynxkey.map,
but I don't know if it has ever been used, since the PDCurses build
isn't usually built with -DUSE_KEYMAPS. I don't know what else would
have to be changed if we tried to build with it.

LYStrings.c now has two sets of code for keymapping, ifdef'd with
USE_KEYMAPS.

I wonder if someone who understands this better could write a blurb
for the lynx users guide to explain this. The functionality of
.lynx-keymaps seems to duplicate that of lynx.cfg (where keys are
mapped directly to a LYK_FUNCTION). I presume the main use is so
individual users on a multiuser system don't have to have a separate
copy of lynx.cfg
                             Doug
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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