On Tue, Jan 18, 2000 at 09:16:03AM -0800, Michael Elkins wrote:
> On Tue, Jan 18, 2000 at 03:12:29PM +0100, Stasinos Konstantopoulos wrote:
> > I've been trying to bind the cursor keys modified by ctrl, but
> > \C<down>, etc. wouldn't work. I also couldn't find how to refer to
> > Meta-modified keys. Any ideas?
>
> Unfortunately I have never seen a term program which return different codes
> for ctrl or alt with a "function" key.
Eterm can do this, e.g:
<f1> is \e[11~
Ctrl+<f1> is \e[11^
Alt+<f1> is \e\e[11~
<left> is \e[D
Ctrl+<left> is \e0d
Alt+<left> is \e\e[D
(you can check Eterm_reference.html for the strings if you have Eterm).
It should be possible to bind mutt functions/macros by giving these
sequences directly (e.g. I use `macro index \e[23~ ...' because Slang
does not recognize it as <f11>).
OTOH if the terminal in question does not distinguish Ctrl/Alt+<key>
from plain <key>, it's harder to do, but doable (e.g. you can setup your
keymap to send any sequences in the console, and many xterm's can be
configured in one way or another).
Yours,
Marius Gedminas
--
If A equals success, then the formula is A = X + Y + Z. X is work. Y
is play. Z is keep your mouth shut.
-- Albert Einstein