Neither Solaris’ terminfo database, nor the one from ncurses (from the S10 companion DVD) defines kend & khome for the “xterm” terminal entry.
You can fix this yourself by recompiling the “xterm” terminfo entry, adding “kend” and “khome” key definitions.
% mkdir /tmp/foo
% env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm >
% echo ' knp=E[6~, kend=E[5~, kend=EOF, khome=EOH, ' >>
% env TERMINFO=/tmp/foo /bin/tic -v /tmp/foo/xterm.ti
Using an xterm window, the “home / Pos1” key and the “End” key can be used to jump to the start and the end of a file.
%env TERMINFO=/tmp/foo less /etc/termcap
If you replace Solaris’ compiled xterm terminfo file in /usr/share/lib/terminfo/x/xterm with the new one, the Home / End keys can be used in a Gnome Terminal too. Yes, at last 😉