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: Andras Simon <szajmi_at_nospam>
Date: Fri Oct 21 2011 - 16:17:01 GMT
To: Community support for Fedora users <users@lists.fedoraproject.org>

2011/10/21, suvayu ali <fatkasuvayu+linux@gmail.com>:
> 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

OK, so it works (and you don't need the escape key, as expected, based
on the man page).

>
> Am I getting the cursor key codes wrong?

Yes, probably.

> 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?

Now that you know where the problem lies, a little googling combined
with some experimentation should get you there (or leave you
frustrated :-)). I'm sorry I can't be of more help.

Andras

Andras
-- 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