I'm trying to bind select-pane and next/previous-window to the S-Right/Left and C-Right/Left keys respectively for use with Putty.

Unfortunately I can only seem to get one working at a time. What occurs is that both sets of keys perform the same action when I try them.

My terminal is set to xterm-color256 outside of tmux, and screen inside tmux. Application Keys Disabled is unticked in putty.

The following is the revelant contents of .tmux.conf

setw -g xterm-keys on
bind -n S-Right select-pane -t :.+
bind -n S-Left select-pane -t :.-
bind -n C-Right next-window
bind -n C-Left previous-window

migrated from stackoverflow.com Dec 9 '16 at 23:14

This question came from our site for professional and enthusiast programmers.

  • This would be better on SuperUser.com. – Barmar Dec 8 '16 at 16:38
  • Thanks! I've already read the above but this was probably just a miscategorization mistake. Should have though about superuser before posting here. – shaananc Dec 9 '16 at 19:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.