<<< Date Index >>>     <<< Thread Index >>>

Re: Bind ctrl+up in muttrc



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, October 19 at 08:37 PM, quoth tchomby:
>Does anyone know how to bind ctrl+up in muttrc? I tried:
>
>    bind index \C<up> command
> 
>but it doesn't work.

That's a key that is difficult to bind (the arrow keys usually are). 
Here's how I'd do it in your case: first, within mutt, type:

     :exec what-key

Then press control-up, and see what happens. You should see something 
like this (this is, obviously, for ctrl-L):

     Char = ^L, Octal = 14, Decimal = 12

(You can press ctrl-G to exit this). Anyway, now you can bind things 
using the raw key value:

     bind index \014 command

However, you should make sure that control-up actually generates a 
different key code from <up>. It may not. :(

~Kyle
- -- 
In any conversation where only one side may be argued, we 
instinctively assume that those who publicly defend the official 
position are motivated by ideology and not by an interest in truth. 
The outlawed position is then assumed to be true, and wins by default.
                                              -- Fr. Andrew Hamilton SJ
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkj7wXsACgkQBkIOoMqOI17nowCfZgwJI+7GlmAvsvB0ZGlSIoNr
5zEAnj9nDeurJ1y9kRjCOUGhcKyFqhy4
=PyQS
-----END PGP SIGNATURE-----