After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 578045 - CTRL-LEFT and CTRL-RIGHT no longer work in gnome-terminal
CTRL-LEFT and CTRL-RIGHT no longer work in gnome-terminal
Status: RESOLVED OBSOLETE
Product: vte
Classification: Core
Component: general
0.20.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-05 16:52 UTC by Bernhard Koenig
Modified: 2012-06-06 11:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Bernhard Koenig 2009-04-05 16:52:01 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:
Comment 1 Christian Persch 2009-04-05 17:17:34 UTC
-> vte
Comment 2 Christian Persch 2009-04-05 18:15:27 UTC
Looks like bug 337252 comment 5. Bug 310305 and bug 425462 look to be related too.
Comment 3 Bernhard Koenig 2009-04-05 18:22:38 UTC
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.
Comment 4 Christian Persch 2009-04-05 18:50:35 UTC
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).
Comment 5 Bernhard Koenig 2009-04-05 19:21:56 UTC
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?
Comment 6 Christian Persch 2009-04-05 19:28:33 UTC
It's not dependent on the shell. I use bash, and it works in a test account but fails in my regular account.
Comment 7 Christian Persch 2009-04-05 19:41:46 UTC
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.
Comment 8 Bernhard Koenig 2009-04-05 19:57:21 UTC
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. :(
Comment 9 Bernhard Koenig 2009-04-05 22:45:12 UTC
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.
Comment 10 Bernhard Koenig 2009-04-10 23:09:58 UTC
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.
Comment 11 Christian Persch 2009-04-11 15:05:47 UTC
No, gnome-terminal only handles keybindings for the UI. It's vte that handles translating ctrl-left/right to the escape sequence.
Comment 12 Bernhard Koenig 2009-04-11 16:28:24 UTC
But how come that this thing worked for me in Gnome 2.24?
Comment 13 Christian Persch 2012-06-06 11:34:40 UTC
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.