In inputrc, making backward-word and forward-word work

If you have any suggestions or ideas about improving Salix, here's the place to post them.
User avatar
marin
Posts: 11
Joined: 7. Apr 2013, 00:00

Re: In inputrc, making backward-word and forward-word work

Post by marin »

The read shell command helps. Enter it and start pressing your key combinations.
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
because:
"\e" == "^["

You have to enter combination for both TTY and X terminal (rxvt, xterm, Terminal, terminator, tilda etc) to have uniform response.
Post Reply