--- In
solarisx86@yahoogroups.com, "eviltypeguy" <adonijah@g...> wrote:
>
> --- In
solarisx86@yahoogroups.com, "Tim Butler" <timothybutler@c...> >
> > > Defining TERMINFO=/opt/csw/share/terminfo (for example) makes
> > the page up/down keys work with /usr/bin/less on Solaris 9.
>
> While that fixes the pageup / pagedown keys to work in my programs at
> least (thank you for that), it still doesn't make my home and end keys
> work when using bash in that terminal window.
Neither Solaris' terminfo database, nor the one from ncurses (S10
companion CD) defines kend & khome for the "xterm" terminal entry.
You should be able to fix this for yourself, by recompiling the "xterm"
terminfo entry, adding "kend" and "khome" key definitions:
kend=\EOF, khome=\EOH,
For example like this:
% mkdir /tmp/foo
% env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm >
/tmp/foo/xterm.ti
% echo ' knp=\E[6~, kpp=\E[5~, kend=\EOF, khome=\EOH, ' >>
/tmp/foo/xterm.ti
% 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.