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.
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
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.
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.
Andreas, this is great. I can confirm this works fine for me.
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.
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.
This should now be fixed in rawhide's ncurses.