3
I found several questions about this, but I didn't find a working answer.
I'm using putty (0.63) to login to my ubuntu 14.04 vps.
In tmux I would like to use ctrl-left and ctrl-right to switch tmux windows.
Here are the tmux settings I'm using:
bind -n C-Right next-window
bind -n C-Left previous-window
set-option -g default-terminal "xterm-265color"
set-option -gw xterm-keys on
The terminal type string in putty is set to "xterm-256color"
When I login to the vps without starting tmux I have these keycodes:
left: ^[[D
right: ^[[C
ctrl-left: ^[OD
ctrl-right: ^[OC
After starting tmux ctrl-left has the same code as left and ctrl-right has the same code as right.
I tried different settings in putty, but I always get the same codes.
Do I need to make changes in terminfo/inputrc/...? How do I do that?
Can I solve this with "set -g terminal-overrides" in tmux ? Where can I find a list of codes or a detailed explanation?
Any idea how to get this working?