How do I enable CTRL right/right arrow key to move word wise in shell?

1

I tried all the tips mentioned in this article:

https://stackoverflow.com/questions/5029118/bash-ctrl-to-move-cursor-between-words-strings

But non work for me...

Is there a way to work it out ?

xpbug

Posted 2011-09-22T12:00:14.727

Reputation: 143

Using which shell and which terminal? – user1686 – 2011-09-22T12:04:29.290

@grawity,I'm connecting to linux from windows by ssh. – xpbug – 2011-09-22T12:21:31.307

That doesn't answer my question at all. Which shell (bash, sh, zsh, csh, ...) and which terminal (PuTTY, Mintty, Xterm, Konsole, Cygwin SSH, SecureCRT, ...)? – user1686 – 2011-09-22T12:24:06.047

@grawity, I'm using xshell, bash. – xpbug – 2011-09-22T12:35:39.990

Answers

2

It's simple - Xshell does not send anything when you press Ctrl+arrows. And you can't configure it to send proper escape sequences, either.

It may be possible to configure Ctrl-Left and Ctrl-Right via "Keyboard Shortcuts" to send some very unlikely to type sequence, but it will cause much headache in the future.

The only proper solution is to choose a different client, such as PuTTY or SecureCRT.

user1686

Posted 2011-09-22T12:00:14.727

Reputation: 283 655

So it has nothing to do with the keyboard? – xpbug – 2011-09-22T14:18:36.747