GNOME Bugzilla – Bug 578045
CTRL-LEFT and CTRL-RIGHT no longer work in gnome-terminal
Last modified: 2012-06-06 11:34:40 UTC
Please describe the problem: The keybindings CTRL-LEFT and CTRL-RIGHT don't seem to work anymore in gnome-terminal 2.26. I'm almost sure they worked in 2.24 and had the meaning "jump one word left/right". Steps to reproduce: 1. open gnome-terminal 2. type several words separated by space 3. CTRL-LEFT gives the output ;5D Actual results: you get beep and output ;5D Expected results: cursor should jump one word to the left Does this happen every time? yes Other information:
-> vte
Looks like bug 337252 comment 5. Bug 310305 and bug 425462 look to be related too.
Bug 337252, bug 310305, bug 425462 are all about older versions of gnome-terminal. The vte/xterm confusion might be related but I have this problem only since I downloaded 2.26 yesterday.
I can repro this bug since at least 4 ubuntu releases back (don't exactly remember if it was the upgrade to dapper, edgy or feisty that it first appeared in).
Aha, now I know why nobody in jaunty complained so far! For me it works with the bash shell, but not in zsh shell. Maybe it's a zsh bug? Or maybe it's possible to fix it by updating .zshrc?
It's not dependent on the shell. I use bash, and it works in a test account but fails in my regular account.
It seems the difference is the presence of ~/.inputrc . That means this bug (if it is a bug) is probably in readline and thus NOTGNOME.
Can you elaborate? I never had a file .inputrc, neither in intrepid nor jaunty. In jaunty it is really the case that CTRL-LEFT works for me in bash but not in zsh. CTRL-A or CTRL-E works in both though. :(
Hi, I filed a Jaunty bug here: https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/355883 For me it really happened ever since I upgraded to jaunty yesterday.
Could I reassign this to gnome-terminal? I heard that these keybindings (CTRL-LEFT and RIGHT) will probly not be implemented into the shells any time soon. So I think it should be a keybinding of gnome-terminal, i.e. make CTRL-LEFT the same as ESC-b and make CTRL-RIGHT the same as ESC-f.
No, gnome-terminal only handles keybindings for the UI. It's vte that handles translating ctrl-left/right to the escape sequence.
But how come that this thing worked for me in Gnome 2.24?
Not reproducible here in F17 (vte 0.32.x, g-t 3.4.x). So either this is fixed by something down in the stack, or this is an ubuntu only bug.