On Tue, Dec 17, 2013 at 04:35:49AM +0100, Mikhail Morfikov wrote:
> I've been configuring tmux for two days and it works pretty well, but
> there's one thing that causes problems. After I switch to a virtual
> console using ctrl+alt+f2 and enter the tmux mode, I create some panes
> by typing ctrl+a+% or ctrl+a+" (I have prefix ctrl+a), and I'm not able
> to resize the panes using ctrl+a + ctrl+up/down/left/right arrows. This
> works without a problem under X11. I'm using urxvt client.

When you press a non-text key or key-sequence, your terminal translates
that into some particular sequence of characters. For example, if I open
a new gnome-terminal, run "cat" and press keys, I can see that
left-arrow sends "^[[D", while ctrl+left-arrow sends "^[[1;5D".

I believe the ability to send modifiers (ctrl, alt, shift) with
arrow-keys is a feature added by xterm and copied by other
terminal-emulators, it's not part of the original VT100/VT220
feature-set. Which is to say, if you run "cat" in a terminal and
pressing ctrl+left-arrow results in "^[[D" on your screen, then you're
out of luck.

In particular, the Linux console is a very limited and
not-particularly-xterm-compatible terminal, and it doesn't surprise me
that it doesn't support ctrl+arrow keys.

I recommend rebinding the switch/resize commands to something more
compatible. I went for the traditional HJKL myself, but maybe you'd
prefer WASD or IJKL or something.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to