Re: binding control-up, control-down
- To: mutt-users@xxxxxxxx
- Subject: Re: binding control-up, control-down
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 17 Feb 2009 10:59:28 -0600
- 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=amyrZqPYFOVwb/BnlBWuc1MgCJY=; b=Djf1 YHwKYhU8WX+SacSybY53KvrtWY+sE5I/W1W8pNt6AgleI3clKcj0ivavPi7i+NtU DuLA4GwVTmf0GIbzadiKOZLSlrT/i7cwNFuuri1FFsENxbnTy1rQ7RfkIyiiYrMl Ke8Iw0ZVkcr6o5sXwDBzibHfhZizrgVmFWNJAvU=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=LJVnNgMWlzu0s1NEOTjGeqnrfRjJStf8Lf3AyMBMygHQr1sf8gX+jyGyo0OjO3WJjxgln4F5vSslHom65mYnFFjL3GpuCnwU7AYxYbxX3E1bGaBS7D3YbdG23PPK2G6M6hOvOG89+mUgxiAjthxDLl4IjLSXCrMOahQJE28zz1Q=; 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: <499A775D.7060903@xxxxxxx>
- 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: <49996AAC.1030900@xxxxxxx> <20090216163459.GA73145@xxxxxxxxxxxxx> <499A775D.7060903@xxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-01-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, February 17 at 09:37 AM, quoth Sven Hergenhahn:
>Hi Kyle,
>
>Kyle Wheeler schrieb:
>> On Monday, February 16 at 02:31 PM, quoth Sven Hergenhahn:
>>> I'm trying to bind control-up and control-down.
>>
>> the way to find out if mutt can see those characters is to use
>> the <what-key> function
>
>Thanks. Tried that and it returned
>
>Char = A, Oktal = 101, Dezimal = 65
Interesting.
One of the common key sequences generated by the "up" key is ^[[A (in
other words, escape-leftbracket-A). It almost looks like what-key saw
only the last part of that.
What do you get in a shell if you type control-V then control-up?
On my system, I get: ^[[1;5A
So, on my system, the way to bind that to something in mutt would be:
bind index <esc>[1;5A previous-entry
Since that key sequence doesn't have a name in the termcap, the
what-key function treats its components individually (it just showed
you the last letter: A).
>Seems this is not possible, at least not in screen.
Oh, in SCREEN? You didn't mention that before. That's probably going
to make it a bit unreliable.
~Kyle
- --
If I were you, I'd run!
- -- Mesh-Head
If you were me, you'd be good-looking.
- -- the Six-String Samurai
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkma7PAACgkQBkIOoMqOI14GOACgl+r+6d32xHS19uC/ecptEa2P
uR8AoNgNVhI/WNBNbcnsBXpHj0/5EWSm
=KmYA
-----END PGP SIGNATURE-----