Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server that I ssh to from Windows 7 using Cygwin+mintty. On the server I attach to a tmux session. So far so good, but when I try to change the tmux layout using C^b [arrow] and C^b M^[arrow] I get problems.

Some times it works, as in the layout changes but most of the time the code for the key pressing is printed in the shell like this:
user@server> [1;5D
This is for C^b C^left. Usually it works the first time but all the following tries will print the code instead. So is there some way I can fix this for Cygwin? (as I don't have this problem when I ssh from a linux machine).

share|improve this question
Could you try press C^b ESC [arrow]? – azat Apr 18 '13 at 4:14
This works like a charm, sad for the extra key press but as long as it works... – SpaceOgre Jun 18 '13 at 13:13
up vote 0 down vote accepted

azat's comment solved my problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.