[fa.info-vax] Need help with RSX

info-vax@ucbvax.ARPA (07/31/85)

From: allegra!sjuvax!jss@BERKELEY (J. Shapiro)


	I would very much appreciate some help with an RSX question. I am
writing an application program in Basic Plus 2, and need to trap Control-C
and other interrupts. I have found that

	Y% = CTRLC

can be beaten by typing Control-C twice in rapid succession. I believe there
is a QIO to set this, but I do not understand how to use it. Could someone
possibly help me out?

Jonathan S. Shapiro
Haverford College
(usenet) ..!allegra!sjuvax!jss

P.S. If I have misunderstood and this got mailed to a moderator, I would
appreciate it if you would be good enough to refer me to someone who can
answer the question or post this for me, as I have no access to the ARPAnet.
Thank You.

info-vax@ucbvax.ARPA (08/02/85)

From: Jorgen_Pihl%QZCOM.MAILNET@MIT-MULTICS.ARPA

You can intercept CTRL-C's with an IO.ATA (attach) QIO,ie

QIO$S  #IO.ATA,...,<ASTSUB,>

where ASTSUB is the address of an AST subroutine. I guess the
AST need not do anything, ie just be:

AST: TST (SP)+          ; Pop character from stack (ignore it)
     ASTX$S             ; AST exit

(The character which caused the AST is on top of the stack on
entry)

There are parameters to the attach QIO to modify this behavior.
For example, a second AST could be called if a CTRL-C was typed.