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

Bug 74805

Summary: ncurses: /etc/terminfo/r/rxvt is wrong
Product: Gentoo Linux Reporter: Ivan Todoroski <grnch>
Component: [OLD] LibraryAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dickey
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ivan Todoroski 2004-12-17 20:10:41 UTC
The Home/End keys specified for the "rxvt" terminal are wrong, causing applications to ignore them when run under rxvt.

The terminfo database specifies them as following (maybe it was vice-versa, I overwrote the original file, but they were wrong in any case):
khome=\E[7~
kHOME=\E[7$
kend=\E[8~
kEND=\E[8$

where in reality, rxvt generates the following sequences when you press Home/End (the caps signify shifted Home/End) 
khome=\E[1~
kHOME=\E[1$
kend=\E[4~
kEND=\E[4$


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Relevant versions:
sys-libs/ncurses-5.4-r5
x11-terms/rxvt-2.7.10-r1
Comment 1 Thomas Dickey 2004-12-28 14:28:39 UTC
Perhaps.  I just checked it against a copy on Debian
and it behaves as I'd documented it.  I'll make a
to-do item to check the original package, in case that
should differ.
Comment 2 Ivan Todoroski 2004-12-29 06:38:44 UTC
Well, I can't say anything about the original ncurses package, but I can tell you that the rxvt definition is definitely wrong for Gentoo. 

You can verify it easily, just install the rxvt ebuild, then try pressing Ctrl-V followed by Home/End in bash (in an rxvt terminal of course), and it will show you the actual sequences generated by rxvt for those keys.

The reason the Home/End keys work in bash is because they have been forcefully hacked to do so in /etc/inputrc. The rxvt definition is still incorrect however, and programs that don't use readline will fail.
Comment 3 Thomas Dickey 2004-12-29 07:18:56 UTC
I'm the ncurses maintainer, do not have a Gentoo to test on.
The original source/documentation for rxvt 2.7.10 does match
ncurses (I compiled a copy of that version and tested it a few
minutes ago).  Perhaps someone modified rxvt's package in Gentoo.
Comment 4 Ivan Todoroski 2004-12-29 07:50:50 UTC
In that case, maybe this bug should really be filed under the Gentoo rxvt package. I'll investigate further to see why the definitions don't correspond under Gentoo.

Thank you for your quick reply.
Comment 5 Thomas Dickey 2004-12-29 08:49:10 UTC
no problem
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-29 08:58:08 UTC
I don't have time and machine to look into the problem until the end of January.
sorry for that.

*** This bug has been marked as a duplicate of 22325 ***