[comp.sys.apollo] gpr borrow mode

MAILER@ERENJ.BITNET (Network Mailer) (02/14/90)

In GPR, only the keys enabled with the keyset argument to gpr_$enable_input
are used by your application.

When working in borrow mode, as long as you don't enable CNTRL-C or
CNTRL-Q (whatever key is defined as the dm command 'dq' (display quit)),
you can always break out of the program. If you're using FORTRAN or C,
you need to use the lib_$ calls to create a pascal-style set, enabling all
characters you plan to use. I generally enable everything but control
characters. I don't have explicit code with me right now, but it goes
something like this:

    lib_$create_set(...)
    lib_$add_to_set(...)

You need to do a lib_$add_to_set for each character you want to enable.
For 'A' to 'Z', you could do a loop with CHAR(ICHAR('A')+I) or just with i
if you're using C. If you're using Pascal, you can just make a set variable,
but I've forgotten how to do that since I stopped using pascal.

Good luck.
Scott Ferguson