Re: Bind ctrl+up in muttrc
- To: mutt-users@xxxxxxxx
- Subject: Re: Bind ctrl+up in muttrc
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 19 Oct 2008 18:23:39 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=Cmcdwp53jSVq+lnh6BlaO/9EUIY=; b=H8Ne 1V1iTF6ITN+f5l1EJDoruupFuJihHd6W4Je9poEgG58fvJofzWfVWYX9Pyx3kk/J jHgh+7a7F/NxCK9EZgvnmx7IuJIXjNSZ6yzk1/an8SK2S+qEHqBKS/UoWE+E0UjP 9Esvj1hrF8sE6lM2eEOhzlr3aQgssVirEDgtiUM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=U1oVfIMGvHlRZDfo+zr5wz6b8KRk/9Ajice4rbbhSN3bHSweAexbMB6k/Rc+NQjH2X0N2n0JU9LLz9sfekpE9mjOWRiazLTvQ5vaIU+nwh2g8lW56rb33dZdwE9R9EunjV5g5Af6hhlAg5OLVgo5aaKm8+4Mll5337B0JjvGvgQ=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081019193742.GA6962@oh>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081019193742.GA6962@oh>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-09-25)
-----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-----