Bug 949921

Summary: rxvt-unicode: All terminfo files should be available normally
Product: [Fedora] Fedora Reporter: Lukas Zapletal <lzap>
Component: rxvt-unicodeAssignee: Robbie Harwood <rharwood>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: andreas.bierfert, jpokorny, mlichvar, opensource, rharwood
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ncurses-6.1-13.20191026.fc32 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 19:35:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1430935, 1660635    

Description Lukas Zapletal 2013-04-09 09:44:58 UTC
Hello,

the ncurses-base package ships rxvt terminfo definitions, but not the unicode versions:

$ rpm -ql ncurses-base | grep rxvt
/usr/share/terminfo/m/mrxvt
/usr/share/terminfo/r/rxvt
/usr/share/terminfo/r/rxvt-16color
/usr/share/terminfo/r/rxvt-256color
/usr/share/terminfo/r/rxvt-88color
/usr/share/terminfo/r/rxvt-basic
/usr/share/terminfo/r/rxvt-color
/usr/share/terminfo/r/rxvt-cygwin
/usr/share/terminfo/r/rxvt-cygwin-native
/usr/share/terminfo/r/rxvt-unicode
/usr/share/terminfo/r/rxvt-xpm
/usr/share/terminfo/s/screen.mrxvt
/usr/share/terminfo/s/screen.rxvt

These are distributed in the rxvt-unicode package:

$ rpm -ql rxvt-unicode | grep terminfo
/usr/share/doc/rxvt-unicode-9.16/etc/rxvt-unicode.terminfo
/usr/share/terminfo/r/rxvt-unicode-256color

Since all modern Fedora distributions default to 256 colors w/ UNICODE, users sshing in distributions based on Fedora (RHEL/CentOS) that does not ship rxvt-unicode have invalid key mappings for some keys (e.g. HOME/END). The only solution is to install rxvt-unicode and pull X Window dependencies or to copy the terminfo file manually.

It would be fantastic if it is possible to move this file into a subpackage rxvt-unicode-terminfo without X Window dependencies so it can be pulled into RHEL.

Comment 1 Lukas Zapletal 2013-04-09 10:07:02 UTC
AFAIK rxvt-unicode is the only package that ships its own terminfo file:

# repoquery -Cla | grep '/usr/share/terminfo' | xargs yum provides | grep fc18 | sort -u
ncurses-base-5.9-7.20121017.fc18.x86_64 : Descriptions of common terminals
ncurses-term-5.9-7.20121017.fc18.x86_64 : Terminal descriptions
rxvt-unicode-9.16-1.fc18.x86_64 : Unicode version of rxvt

Comment 2 Till Maas 2016-02-17 19:55:35 UTC
Andreas, if it is ok with you, I will implement this change.

I could also add the terminfo file to ncursed directly, since it also contains the non 256color terminfo file. AFAIK there are disagreements between upstream ncurses and rxvt-unicode that make a nice solution hard.

Comment 3 Andreas Bierfert 2019-10-13 22:07:29 UTC
A scratch build with a -terminfo subpackage (which still seems to be the best solution for various reasons) is available here: https://koji.fedoraproject.org/koji/taskinfo?taskID=38278089

Feedback welcome.

Comment 4 Lukas Zapletal 2019-10-14 09:38:05 UTC
Andreas, this is great. I can confirm this works fine for me.

Comment 5 Robbie Harwood 2019-10-23 17:31:39 UTC
It doesn't solve the underlying problem though (ssh into box, keys don't work and readline doesn't update properly).  I think it would be better to have ncurses just provide a terminfo file for us - like they do for urxvt already.  (This is also how Debian does it.)  I will look into making a PR for them.

Comment 6 Robbie Harwood 2019-10-25 18:00:31 UTC
I've opened a PR against ncurses for this: https://src.fedoraproject.org/rpms/ncurses/pull-request/1

Once ncurses has built with that, we can remove our terminfo subpackage and resolve this issue.

Comment 7 Robbie Harwood 2019-11-05 19:35:23 UTC
This should now be fixed in rawhide's ncurses.