From: dblakele@acpub.duke.edu (Dean Blakeley MD)
Newsgroups: comp.sys.next.misc
Subject: Re: PF Keymapping
Date: 27 Jul 92 10:27:13 GMT
Organization: Duke University; Durham, N.C.

First off I want to thank everybody for their responses.  The original question
that I was faced with was this:

Subject: Keymapping PF Keys
Date: Fri, 24 Jul 1992 02:33:00 GMT
From: dblakele@magnus.acs.ohio-state.edu (Dean D Blakeley)
Organization: The Ohio State University

Got a problem here.  There is a system I'm trying to use which requires
that I do a keymapping of PF keys for the NeXT keyboard.  I'm logging
in to a DEC mainframe that uses Ultrix 4.2 (I believe) and am getting
into a sub-system that is set up to do CD-ROM searches on a set of
CD's for MEDLINE.  I'm connecting using the NeXT-kermit from the network
(with pretty much no documentation as I've found out) with a 68040 cube
and a DoveFax modem through a standard POTS line (no ISDN yet, Ha!).

My instructions from the user site were rather unhelpful, but then again
that's what I get for beating a bunch of DOS-heads with a NeXT.  Any
suggestions via email will be helpful, and I'll summarize once I get
my new account set up at Duke University with internet access.  Thanks.

The responses to the query were quick and to the point:

From: isbell@cats.UCSC.EDU
Date: Thu, 23 Jul 92 22:13:00 -0700
Organization: Cubic Solutions - NeXT software development and consulting

>If I recall, the PF keys were on the top row of the numeric keypad.  Since
>you're probably using Terminal, you can set its preferences to generate VT100
>codes from the numeric keypad, or the Alt modifier key is supposed to generate
>VT100 numeric keypad codes if you don't want to change Terminal's preferences.

>I just tried it in this message (I'm using emacs as my mail editor) and the
>top numeric keypad keys generated 2-character codes using VT100 emulation,
>^[OP, ^[OQ, ^[OR, and ^[OS (these are actually 4-character sequences because
>email isn't happy passing non-printable characters).


Date:         Fri, 24 Jul 92 08:52:56 EDT
From: JKTROXE%ERENJ.BITNET@OHSTVMA.ACS.OHIO-STATE.EDU
Subject:      Re: Keymapping PF Keys


>Try alt-1 through alt-= on the top of the keyboard.
>Works for me when I emulate a vt100 dialing in via kermit to an IBM
>mainframe.


Date: Fri, 24 Jul 92 19:31:07 mdt
From: N Tomczak-Jaegermann <ntomczak@vega.math.ualberta.ca>

>If you are using Terminal to run your kermit then Alt-<keys from
>numeric pad> are sending various function keys.  Actually you
>may change that with Preferences.  I am signing on to VM which 
>is far more brain damaged.

Date: Sat, 25 Jul 92 03:53:10 CDT
From: scott@nic.gac.edu (Scott Hess)

>Not certain what you mean.  The vt100 PF[1-4] keys work from
>Terminal or Stuart when you have vt100 keypad mode on.  If you
>want the vt320 function keys or some such, you're out of luck for
>now.

[dblakele speaking again]

Well, I tried the suggestions and went back to the instructions given to
me by the Duke medical library on keymapping.  Apparently to emulate a
F1 command, their system wanted to receive a PF1, keypad 1 sequence which
would send a ^[OP^[Oq string.  I tried the various suggestions of 
Alt-keypad 1, but what finally worked wasn't immediately apparent.  Now,
mind everybody, I'm just a physician and some things aren't always as
intuitively obvious to me ;-)  Anyway, what worked was using the keypad
strictly as I remembered it.  The PF1 key would be on the top row of the
keypad.  On the NeXT keyboard that would be the ~` key.  I used that as
the PF1 and the numeric with it and, voila, it worked.  I'm in business
and can do my literature searching from home and use my NeXT as opposed
to the Dell 386 machine they gave me in my office.

Well, thanks again everybody.

Peace

****************************************************************************
Dean D. Blakeley, MD               Internet: dblakele@acpub.duke.edu
Duke Div of Gen Internal Med         BITNET: blake007@dukemc.duke.edu
Durham VA Medical Center
Amublatory Care Service (11C)      NeXTmail happily accepted
Durham NC 27705
****************************************************************************