From: pdf@morgan.ucs.mun.ca (Paul David Fardy)
Subject: Re: Help! The [PageUp] and [PageDown] keys don't work!
Date: 1996/06/14 [thread overview]
Message-ID: <4prrms$d3@coranto.ucs.mun.ca> (raw)
In-Reply-To: 4pp7pf$q3e@alpha.comsource.net
Re: termcap info.
There are two databases on terminals: the System V flavoured terminfo
and the older termcap. It appears that, under Digital UNIX, vi uses
the terminfo database, so you'll have to modify the system terminfo
database or build your own.
--
dphan@alpha.comsource.net (David Phan) writes:
>Help! I am a newbie to xterm. For some reason, the [PageUp]
>and [PageDown] keys don't work when I am editing files with
>vi or PICO. It works fine when I switched to DECterm.
DECterm uses the vt200 terminfo entry which includes the following
definitions.
kdo=\E[29~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, khlp=\E[28~,
Add these (at least knp and kpp) to the xterm entry in your xterm
terminfo source file, /usr/lib/terminfo/xterm.ti. Then run tic
(terminfo compile) on the xterm.ti file. If your updating the system
terminfo database, remember to "chmod -R a+rX /usr/lib/terminfo/x"
after you tic, else others may not be able to access the database.
The terminfo database consists of binary files stored in a shallow
directory tree, one file per termtype: the vt100 entry is
$TERMINFO/v/vt100, xterm is $TERMINFO/x/xterm--see a pattern? :-)
TERMINFO would be an environment variable specifying the path to your
terminfo database; the default path, /usr/lib/terminfo, is used if you
have no TERMINFO variable set.
--
Re: vi's mapping of npage to ^F, etc.
This automapping is not documented in the ex or vi man pages and
it doesn't appear possible to remap these keys. You can map the
function keys, though. I map the keys to change the shiftwidth
and autoindent options.
map #1 :set ts=8 sw=4^M
map #2 :set ts=5 sw=5^M
map #3 :set noai^M
map #4 :set ai^M
I usually work in states 2 and 4, but I switch to 1 and 3 when working
with tab aligned files or when I cut and paste from one xterm to
another. Those are literal carriage returns that I put in my .exrc.
Each #<digit> in the map must be matched by a kf<digit> in your terminfo
entry.
Paul Fardy
--
Paul David Fardy | pdf@morgan.ucs.mun.ca
Computing and Communications | pdf@InfoNET.st-johns.nf.ca
Memorial University of Newfoundland |
St. John's, NF A1C 5S7 |
next prev parent reply other threads:[~1996-06-14 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-13 4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
1996-06-13 4:00 ` Donn Cave
1996-06-14 4:00 ` Paul David Fardy [this message]
1996-06-16 4:00 ` Hendrik S. Roepcke
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox