The Page Up/Down, Home, and End keys don’t work out of the box. Very annoying when you’re trying to scroll through a man page. Fortunately, it’s an easy fix.
Export the existing terminfo description:
james@opensolaris:~# env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm > /tmp/xterm.ti
Add the missing key definitions:
james@opensolaris:~# echo '\tknp=\\E[6~, kpp=\\E[5~, kend=\\EOF, khome=\\EOH,' >> /tmp/xterm.ti
Compile the file:
james@opensolaris:~# env TERMINFO=/tmp /bin/tic -v /tmp/xterm.ti
And replace the existing xterm description:
james@opensolaris:~# mv /tmp/x/xterm /usr/share/lib/terminfo/x/xterm
