Notice how output differs from X terminals to TTY.
Than you can litteraly quote the result into /etc/inputrc, for example, in TTY you need:
Code: Select all
"\e[d": backward-word # ctrl + left
"\e[c": forward-word # ctrl + right
# or
"^[[d": backward-word # ctrl + left
"^[[c": forward-word # ctrl + right
"\e" == "^["
You have to enter combination for both TTY and X terminal (rxvt, xterm, Terminal, terminator, tilda etc) to have uniform response.