Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343019

Summary: ctrl-left/right to jump to word boundary don't work on virtual console
Product: Gentoo Linux Reporter: Marcel Partap <mpartap>
Component: [OLD] baselayoutAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcel Partap 2010-10-28 01:15:31 UTC
This was annoying me for some time and i was unclear if it is possible at all. Now this time i invested the five minutes to look it up, the top of /etc/inputrc says it:
# Quick dirty little note:
#  To get the key sequence for binding, you can abuse bash.
#  While running bash, hit CTRL+V, and then type the key sequence.
Done that and added
"\e[C": forward-word
"\e[D": backward-word
now it works for plain bash and tmux and i am happy ;)
Comment 1 Wormo (RETIRED) gentoo-dev 2010-11-05 19:57:19 UTC
This is not really a bug, but sounds like a nice tip for posting on a forum :)
https://forums.gentoo.org/viewforum-f-12.html
Comment 2 Marcel Partap 2010-11-05 20:25:56 UTC
Uhhm it quickly turned out that if it looks too good to be true, it sometimes is. My change actually makes EVERY cursor key press jump a word which is of low usefulness. So the real problem is that on the virtual console, bash input sees no distinction between [cursor key] and [CTRL]+[cursor key]. WTF?