Re: Key bindings for screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/10/21, suvayu ali <fatkasuvayu+linux@xxxxxxxxx>:
> On Fri, Oct 21, 2011 at 5:02 PM, Andras Simon <szajmi@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux