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 - 13:15:11 GMT
To: Community support for Fedora users <users@lists.fedoraproject.org>

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

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