Using ctrl-arrow keys with PuTTY and screen

Posted by kbosak on Server Fault See other posts from Server Fault or by kbosak
Published on 2010-04-07T14:36:00Z Indexed on 2010/04/07 14:43 UTC
Read the original article Hit count: 353

Filed under:
|
|

I searched and couldn't find a solution for this anywhere. I'm using PuTTY from Windows to connect to various servers where I run bash and screen. It seems bash works fine with ctrl-arrow keys to jump word-to-word on the command line but within screen it's not working. Not in screen, ctrl-left sends "^[OC and ctrl-right is "^[OD". Within screen I instead get "^[[C" and "^[[D", which appears to be the codes for just the left/right arrow keys. Is there any way to get screen to recognize ctrl-arrow keys when using PuTTY? (FYI, I don't remember having this problem when using gnu-terminal in linux instead of PuTTY).

© Server Fault or respective owner

Related posts about putty

Related posts about bash