fedora-users October 2011 archive
Main Archive Page > Month Archives  > fedora-users archives
fedora-users: Re: Key bindings for screen

Re: Key bindings for screen

From: suvayu ali <fatkasuvayu+linux_at_nospam>
Date: Fri Oct 21 2011 - 15:27:51 GMT
To: Community support for Fedora users <users@lists.fedoraproject.org>

On Fri, Oct 21, 2011 at 5:02 PM, Andras Simon <szajmi@gmail.com> wrote:
>> I have tried that too. For lines like these,
>> bind ^a^[[D prev
>> bind ^a^[[C next
>> I get an error like this:
>> bind character ^x, or (octal) \032 expected.
> Are you sure you need that ^a there? I'd think that's not part of the
> key. Also, if I were you, I'd try a simple key (one corresponding to a
> printable ascii character) first, not the cursor keys. Who knows what
> special syntax those need to be specified in.

I have tried that, without the ^a it simply ignores the cursor keys. :(
That said a line like this (with printable characters) work as expected:

bind ' ' windowlist -b

The above shows me the windowlist on pressing C-a <space> in screen.
Similarly this attempt to interchange C-a n and C-a p also works.

bind n prev
bind p next

Am I getting the cursor key codes wrong? I am getting the ASCII values
by quoting the cursor keys with C-v in bash. Is there a way to get the
octal numbers somehow?

-- Suvayu Open source is the future. It sets us free. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines