On Wed, 19 Sep 2001 at 10:49:45 -0400, Miguel Farah F. wrote:
> I find the <Esc><Tab> key combination for the previous-new command
> quite awkward, and I'd rather remap it to Shift-Tab. However, I can't
> find a way to define this key combination. What am I missing?
I'm not completely sure how you can make shift-tab work[1], but another
approach is getting your Alt key recognised as a meta key, which is what
the escape-prefixed commands in mutt represent.
There are two ways of going about that, corresponding to the two main
ways meta keys are generally handled:
- Configure your terminal to escape-prefix Alt- (i.e. Meta) modified
keypresses, so that <Alt-Foo> results in <Esc><Foo> being sent.
- Configure your terminal to send Alt-modified keys with the meta (8th)
bit set. In this case, <Shift-Tab> will result in the character with
numeric value 0x89 [2] being sent. Mutt won't recognise this out-of-
the box though; you'll have to enable the `meta_key' option in your
muttrc.
Most terminals should be capable of at least one of those possibilities.
If yours doesn't, switch. :-)
HTH,
[1] It likely depends on what your terminal sends when you press shift
and tab. If you're determined, you can try and capture it in vi
(for example) by entering insert mode and typing
<Ctrl-V><Shift-Tab>. On my computer, that results in:
<Esc>[Z
where <Esc> is a literal escape. You can then macro that sequence
from your muttrc. (I had to do this to map <Ctrl-Delete> to
delete-thread on my old Cygwin installation.)
[2] Which is the result of 9 (a tab) + 128 (the high bit).
--
Piet Delport <[EMAIL PROTECTED]>
Today's subliminal thought is:
PGP signature