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>:
> Hi everyone,
>
> I have been trying to setup some keybindings for screen but have been
> rather unsuccessful so far. The documentation is very difficult to
> understand / follow for me. I was wondering if someone could help me
> understand how to specify key combinations with modifier keys.
>
> I want to be able to switch terminals with either `escape key
> <arrow>' or `escape key C-<arrow>'. I would also like to change
> my escape key from C-a to C-q (easier to navigate in bash and
> emacs). These are my attempts so far:
>
> 1. Switching terminals: I tried the following for `escape key
>    <arrow>', but it doesn't work.
>
>    bindkey -d ^[[D prev
>    bindkey -d ^[[C next
>
>    Then I tried the following for `escape key C-<arrow>'.
>
>    bindkey -d ^[[1;5D prev
>    bindkey -d ^[[1;5C next
>
>    This somewhat works. The problem now is, after swithing the terminals
>    if I press the escape key for a subsequent command it is interpreted
>    as the concluding part of a C-a C-a sequence and screen switches to
>    the original terminal. To give you an example a sequence like this,
>    `C-a C-<left> C-a A' is interpreted as `prev other A' instead of
>    `prev title'.
>
> 2. Changing the escape key: This is more of an issue with the terminal
>    emulator rather than screen. My terminal emulator (xfce4 terminal)
>    doesn't pass on the C-q to screen. Strangely when I run emacs in the
>    terminal (emacs -nw) or I run emacs within screen, C-q is passed
>    along just fine.
>
> Any ideas?


How about screen's own bind command (see man screen)?
I haven't used it, but that's what I would look at first.

The C-q problem might be related to flow control. Try to turn it off
or use auto mode in screen (C-a C-f).

HTH,
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