Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178653 - rxvt-unicode/rxvt-unicode-8.2 backspace key doesn't work in vim - terminfo issue
Summary: rxvt-unicode/rxvt-unicode-8.2 backspace key doesn't work in vim - terminfo issue
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 15:16 UTC by Amit Kotlovski
Modified: 2007-05-16 08:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Kotlovski 2007-05-15 15:16:56 UTC
I emerged rxvt-unicode, and ran vim inside the urxvt terminal.
The backspace key didn't work but printed funny chars instead.
I followed the info in http://www.ibb.net/~anne/keyboard/keyboard.html#terminfo and noticed I didn't have a /etc/terminfo/u/urxvt file. So I duplicated /etc/terminfo/r/rxvt and now it works.

Now, it is a bit odd, as I get:
$ echo $TERM
rxvt

Which should, as far as i understand, make the rxvt be used. But i guess it doesn't.

I thought of adding a symlink from (prefix)/r/rxvt to (prefix)/u/urxvt, and can offer a simple patch for it.
But perhaps there is an actual problem to solve here?

Reproducible: Always

Steps to Reproduce:
1. emerge rxvt-unicode vim
2. enter insert mode, write something and then try to erase it using the backspace key.

Actual Results:  
Notice funny chars entered.

Expected Results:  
chars being erased.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-15 15:49:54 UTC
Not reproducible at all...

# equery f rxvt-unicode | grep terminfo
/usr/share/doc/rxvt-unicode-8.2/rxvt-unicode.terminfo.bz2
/usr/share/terminfo
/usr/share/terminfo/r
/usr/share/terminfo/r/rxvt-unicode

$ echo $TERM
rxvt-unicode

[ebuild   R   ] x11-terms/rxvt-unicode-8.2  USE="iso14755 perl truetype" 0 kB 
Comment 2 Amit Kotlovski 2007-05-15 16:07:34 UTC
I also get:
$ equery f rxvt-unicode |grep terminfo
/usr/share/doc/rxvt-unicode-8.1/rxvt-unicode.terminfo.bz2
/usr/share/terminfo
/usr/share/terminfo/r
/usr/share/terminfo/r/rxvt-unicode

However:
$ echo $TERM
rxvt

[ebuild   R   ] x11-terms/rxvt-unicode-8.1  USE="iso14755 perl truetype" 0 kB
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-15 16:09:08 UTC
Well, then set your TERM properly? What's exactly the issue here? :)
Comment 4 Amit Kotlovski 2007-05-15 16:22:48 UTC
(In reply to comment #3)
> Well, then set your TERM properly? What's exactly the issue here? :)

You are correct.
I found the cause to this in this line I had in my .Xdefaults file:
urxvt*termName:         rxvt

Thanks!
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-05-16 08:49:44 UTC
OK, I guess this can be closed now. ;)