From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2402a665072e31be X-Google-Attributes: gidfee84,public From: pdf@morgan.ucs.mun.ca (Paul David Fardy) Subject: Re: Help! The [PageUp] and [PageDown] keys don't work! Date: 1996/06/14 Message-ID: <4prrms$d3@coranto.ucs.mun.ca>#1/1 X-Deja-AN: 160153738 references: <4pp7pf$q3e@alpha.comsource.net> organization: Memorial University of Newfoundland newsgroups: comp.unix.osf.osf1 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 # in the map must be matched by a kf 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 |