Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Vim doesn't recognize any more the CTRL key...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Fri Jun 22, 2007 2:28 pm    Post subject: [SOLVED] Vim doesn't recognize any more the CTRL key... Reply with quote

Hi.

I have a problem... some times ago, I updated my system and now I can't use the CTRL+ARROWS keys to move from word to word inside gnome-terminal or xterm.
Instead, when hitting CTRL+LEFT I get a D, and hitting CTRL+RIGHT, I get a C.
I don't know from where can the source of the problem be, because it works fine Eterm and aterm.

Any ideas from where the problem come and how to solve it?

Thanks for your help.


Last edited by kirikou on Sat Jun 30, 2007 8:55 pm; edited 4 times in total
Back to top
View user's profile Send private message
tp11235
n00b
n00b


Joined: 22 Aug 2006
Posts: 35
Location: England

PostPosted: Fri Jun 22, 2007 5:57 pm    Post subject: Reply with quote

I had a problem with Gnome and folders not working after the last update. One of the libraries developed a problem.

Running revdep-rebuild (in Gentoolkit) fixed it for me.
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Fri Jun 22, 2007 6:18 pm    Post subject: Reply with quote

Thanks for the answer, but I've already tried it and it solved nothing (re-emerge just sun-jdk and gcc) :(
I found a topic on the ubuntu forums, but it didn't provide any solution. (https://bugs.launchpad.net/ubuntu/+source/vte/+bug/89660)
Back to top
View user's profile Send private message
sledgeas
n00b
n00b


Joined: 16 Nov 2005
Posts: 61
Location: Lithuania. Now: Bolzano, Italy

PostPosted: Fri Jun 22, 2007 6:27 pm    Post subject: Reply with quote

kirikou wrote:
Thanks for the answer, but I've already tried it and it solved nothing (re-emerge just sun-jdk and gcc) :(
I found a topic on the ubuntu forums, but it didn't provide any solution. (https://bugs.launchpad.net/ubuntu/+source/vte/+bug/89660)


Same problem here; and the problem now is everywhere in console: in gnome-terminal, in xterm, in vim

Anybody has an idea? (seems totally unrelated to the ubuntu forums problem)
_________________
-- 
sledge
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Sat Jun 23, 2007 11:08 am    Post subject: Reply with quote

I took a long time looking for more informations on this topic, and it seems to be related to vte (I have the 0.16.5 version).
Hence is this a bug in vte ?
Back to top
View user's profile Send private message
sledgeas
n00b
n00b


Joined: 16 Nov 2005
Posts: 61
Location: Lithuania. Now: Bolzano, Italy

PostPosted: Sun Jun 24, 2007 7:04 am    Post subject: Reply with quote

kirikou wrote:
I took a long time looking for more informations on this topic, and it seems to be related to vte (I have the 0.16.5 version).
Hence is this a bug in vte ?


Same version I have -- but it's a Gnome terminal widget as described; although belongs to x11-libs package group; which could explain why even my xterm behaves like that.

Can you issue a bug on vte then? Really annoying problem
_________________
-- 
sledge
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Sun Jun 24, 2007 10:23 pm    Post subject: Reply with quote

Unfortunately, this topice doesn't seem to interest a lot of people...
I spent hours looking for solutions on google, but I found nothing...
Any idea's welcome!

Don't you find it disturbing ?!? 8O 8O 8O 8O 8O 8O
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Thu Jun 28, 2007 11:55 am    Post subject: Reply with quote

I updated my system and a new version of vte is available (0.16.6)... but the problem remains... is the problem really from vte?
Hope this nasty bug will soon be corrected!!
Thanks for your solutions...
Back to top
View user's profile Send private message
vonr
Guru
Guru


Joined: 23 Mar 2006
Posts: 300
Location: Amsterdam, The Netherlands

PostPosted: Thu Jun 28, 2007 3:44 pm    Post subject: Reply with quote

Have a look at this bug on b.g(entoo).o. Also, as I mentioned in that bug report, the patch from this bug's comment #12 on b.g(nome).o should fix the issue.

Also, please note that this bug does *not* show up in xterm for me.
_________________
Have you ever seen Geneva™, Monaco®, or New York®?
Geneva, Monaco, and New York are trademarks of Apple Computer, Inc., some registered in the U.S. and other countries.
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Thu Jun 28, 2007 4:03 pm    Post subject: Reply with quote

Thanks a lot!! You saved me!!

Just added the next lines to /etc/inputrc:
Code:
"\e[1;5C": forward-word
"\e[1;5D": backward-word


Now it works for gnome-terminal and xterm!

But the problem remains for vim... when I do a CTRL+left I get a new line above the current one with the letters "1;5D" ("1;5C with CTRL+right") and I'm switched to insert mode...
Back to top
View user's profile Send private message
sledgeas
n00b
n00b


Joined: 16 Nov 2005
Posts: 61
Location: Lithuania. Now: Bolzano, Italy

PostPosted: Thu Jun 28, 2007 4:14 pm    Post subject: [solved by patching,needs injection to src tree and portage] Reply with quote

kirikou wrote:
Thanks a lot!! You saved me!!

Just added the next lines to /etc/inputrc:
Code:
"\e[1;5C": forward-word
"\e[1;5D": backward-word


Now it works for gnome-terminal and xterm!

But the problem remains for vim... when I do a CTRL+left I get a new line above the current one with the letters "1;5D" ("1;5C with CTRL+right") and I'm switched to insert mode...


Wonderful, you fixed my problem, I will fix your remaining one :))
I have patched vte-0.16.5 with vte-cursor-modifers-to-csi-patch
http://bugzilla.gnome.org/attachment.cgi?id=87843&action=view with the following steps:

Code:
ebuild /usr/portage/x11-libs/vte/vte-0.16.5.ebuild unpack
cd /var/tmp/portage/x11-libs/vte-0.16.5/work/vte-0.16.5
wget -Ovte-cursor-modifers-to-csi-patch http://bugzilla.gnome.org/attachment.cgi?id=87843&action=view
patch -p0 <vte-cursor-modifers-to-csi-patch
ebuild /usr/portage/x11-libs/vte/vte-0.16.5.ebuild merge
ebuild /usr/portage/x11-libs/vte/vte-0.16.5.ebuild clean

I think the same can be done to 0.16.6 version, just replace the digit ;)

And after this my gnome-terminal still did not work, although vim worked (your problem) ;)
And thanks for your solution for inputrc, now I have all my system back to normal, and will be masking vte off till this wonderful patch gets injected
_________________
--&nbsp;
sledge
Back to top
View user's profile Send private message
kirikou
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2006
Posts: 83

PostPosted: Sat Jun 30, 2007 8:55 pm    Post subject: Reply with quote

Thanks!!!
Back to top
View user's profile Send private message
sledgeas
n00b
n00b


Joined: 16 Nov 2005
Posts: 61
Location: Lithuania. Now: Bolzano, Italy

PostPosted: Thu Sep 20, 2007 9:50 am    Post subject: Reply with quote

Ok, this time the vte (gnome-terminal) bug hit the stable Gentoo and it appears that still nobody'd fixed it.

put these things in your /etc/inputrc next to gnome-terminal section about (escape + arrow key)
"\e[1;5C": forward-word
"\e[1;5D": backward-word

guys, it's just a two lines in /etc, please include the correction in your vte ebuilds

Updating that bug as well (http://bugs.gentoo.org/show_bug.cgi?id=178793) -- looks like that one did not even have the solution for bash, gnome-terminal etc

Thanks
_________________
--&nbsp;
sledge
Back to top
View user's profile Send private message
sledgeas
n00b
n00b


Joined: 16 Nov 2005
Posts: 61
Location: Lithuania. Now: Bolzano, Italy

PostPosted: Mon Dec 10, 2007 9:31 am    Post subject: Reply with quote

C'mon, guys, my baselayout's just gotten updated today to 1.12.9-r2, and /etc/inputrc again got dispatch-conf`ed to the one _without_ essential lines
Code:
"\e[1;5C": forward-word
"\e[1;5D": backward-word


So when are you going to inject this thing into portage? Bug http://bugs.gentoo.org/show_bug.cgi?id=178793 updated with the same info

Thanks ;)
_________________
--&nbsp;
sledge
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum