On Wed, 22 Jul 2009 21:17:29 +0100 Peter Tribble <peter.tribble at gmail.com> wrote:
> > On 21 Jul 2009, at 19:03, Karl Dalen wrote: > > You might find this useful: > > <http://mail.opensolaris.org/pipermail/desktop-discuss/2007-June/003646.html> > > That's the opposite behaviour to what's requested. Why's that the opposite behaviour? Ever since I followed this advice I have PgUp/PgDn, Home, End act precisely the way they should act. In xterm, but also in Gnome terminal. The text: Support for home / end in gnome-terminal 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. kend=\EOF, khome=\EOH, Example: % mkdir /tmp/foo % env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm > /tmp/foo/xterm.ti % echo ' knp=\E[6~, kend=\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. ################ It -DOES- work and it is very easy to do. Much easier than to recompile vte-0.20.5 or whatever version is current. Replacing /usr/share/lib/terminfo/x/xterm is upgrade proof too. -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | nevada / OpenSolaris 2010.02 B118 + All that's really worth doing is what we do for others (Lewis Carrol)
