Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!udel!rochester!bbn!uwmcsd1!ig!agate!helios.ee.lbl.gov!lll-tis!ames!oliveb!pyramid!weitek!sci!auspyr!mick
From: mick@auspyr.UUCP
Newsgroups: comp.os.vms
Subject: How to access function keys from programs?
Message-ID: <5930@auspyr.UUCP>
Date: 2 Jun 88 16:02:48 GMT
Organization: Austec Inc., San Jose, Ca. USA
Lines: 24
Posted: Thu Jun  2 12:02:48 1988


I'm trying to understand how VMS permits use of function keys from within
user written processes, but all I've found so far is the DEFINE/KEY
command in the users guide.  Maybe someone can point me to the right manual
(DEC seems to have hundreds; we have only half a dozen!) with the info I
need and/or elucidate here.  I'm writing in C but examples in any language
will be fine.  I'm also using RMS calls directly, as the SMG routines
do not have sufficient features for me.

Ideally I would like access to the function keys on a vt220 keyboard (or
similar), as f1 thru f20.  The docu so far indicates that I need to
SET TERM/NOLINE_EDIT to enable f7 thru 16.

Which system routine can I call to do this from my program, and then
reset it upon termination?

In the light of some recent postings I am adding the following (sigh).
I will be happy to RTFM if someone tells me which FM to read.

Thanks in advance to those who want to help.
-- 
-------------------------------------------------------------------------
Michael Andrew        Sr. Systems Engineer    Austec, Inc.  San Jose CA.
mick@aussjo.UUCP  or amdahl!auspyr!mick       (408) 279 5533