I cannot make tmux recognize Ctrl-Left-arrow sequence differently from just a left arrow, and the same for the right arrow too. In my
~/.inputrc, I have mapped these sequences (as issued by 2 different terminal emulators, namely putty and mobaxterm) to jump over words in command line:
"\eOD": backward-word "\e[1;5D": backward-word
This works in an ssh session just fine, but both screen and tmux do not distinguish between arrows and control-arrows. Naturally, the recommended solution is to enable the option xterm-keys in tmux by adding the global option into
~/.tmux.conf, and there is direct evidence (besides the "thanks" comments to the above solution) that this works for other people. But for me, Ctrl-Left-arrow sends the same code,
ESC D, as does Left-arrow.
I have confirmed that the option is indeed set by checking tmux options with
and even set it just in case for the current window manually with
:set-window-option xterm-keys on
but all this to no avail. tmux reports version number 1.8 with
What else may I check to troubleshoot this problem?