On Tue, May 14, 2002 at 07:27:43AM +0200, Nicolas Rachinsky wrote:
> > modern keyboards and tty drivers easily can tell the two apart.
> > 
> > That's not always true. Look at the output of "stty -a" if it contains
> > something like "erase=^H" then your Backspacekey (if it's working) is
> > producing ^H.
> 
> Or try the following: open cat, type something (without newline) and
> now try ^H.

It's been a while since I programmed anything at the raw keyboard
level, so I can't remember exactly how those applications picked up
their keycodes.  But I do know that all the information was there
to distinguish the Control-H key combination from the <backspace>
key, or any other key for that matter.

I think it's a question of how an application chooses to use the
keys that's relevant here.  I don't use cat much for sophisticated
line editing, but I do use readline constantly, and so I use
.inputrc to map the keys to my preferences; in the case under discussion:

"\C-L": forward-char
"\C-H": backward-char

takes care of the remapping.  <backspace> works as expected by default.

Since Mutt provides a means to rebind keys to the user's preferences,
I assume there's a way to rebind them to MY preferences.  But just
how that's to be done in this case isn't obvious to me, so I was
hoping someone who knows Mutt well enough to answer might speak up.

Still hoping...

Jim

Reply via email to