[comp.unix.xenix.sco] How to get PgUp and PgDn keys working in vi?

paul@actrix.co.nz (Paul Gillingwater) (11/06/90)

Hi,

SCO Xenix 2.3 on 386.  I'd like to get the PgUp and PgDn keys
working on the console terminal multi-screens.  I tried creating a
.exrc with the following in it:

map! ^[[I ^[^u
map! ^[[G ^[^d

This is not well documented by SCO.  It didn't work.  (Of course I
used ^V to escape the ^[ and other control codes).

Can anyone suggest an easier way?  I tried also setting the PU and
PD entries in the /etc/termcap entry for TERM=ansi to no avail.
-- 
Paul Gillingwater, paul@actrix.co.nz

rick@lrark.UUCP (Rick Mobley) (11/09/90)

In article <1990Nov6.081308.68@actrix.co.nz> paul@actrix.co.nz (Paul Gillingwater) writes:
 >SCO Xenix 2.3 on 386.  I'd like to get the PgUp and PgDn keys
 >working on the console terminal multi-screens.  I tried creating a
 >.exrc with the following in it:
 >
 >map! ^[[I ^[^u
 >map! ^[[G ^[^d
 >
I have the following in my .exrc file:

map ^[[G ^F   <-- for PgDn
map ^[[I ^B   <-- for PgUp
map ^[[H 1G   <-- for Home
map ^[[F G    <-- for End

Works as advertised!

 >This is not well documented by SCO.  It didn't work.  (Of course I
 >used ^V to escape the ^[ and other control codes).

Escape with ^V as you mentioned.


-- 
rick@lrark.UUCP       *    bang path --> uunet!ddi1!lrark!rick    *
Ricky Mobley          *          LRTUG (501) 224-9454             *
1800 Sanford Dr. #4   *    GEnie Unix RT SysOp address LRARK      *
Little Rock, AR 72207 *     WB5FDP.AR.USA.NA wb5fdp.ampr.org      *