[Info-vax] disabling a CTRL/Y ast
Tom Adams
tadamsmar at gmail.com
Wed Jan 6 14:15:55 EST 2016
On Wednesday, January 6, 2016 at 1:07:16 PM UTC-5, VAXman- wrote:
> In article <a8aa8d7c-102c-4e00-a8ba-5af1b816caf2 at googlegroups.com>, Tom Adams <tadamsmar at gmail.com> writes:
> >On Wednesday, January 6, 2016 at 10:47:51 AM UTC-5, Bob Gezelter wrote:
> >> On Wednesday, January 6, 2016 at 10:15:11 AM UTC-5, Tom Adams wrote:
> >> > Section 5.4.3.2 here:
> >> >=20
> >> > http://www2.hmc.edu/www_common/OVMS072-OLD/72final/6136/6136pro_019.htm=
> >l
> >> >=20
> >> > explains how to enable a ctrl/y ast using IO$M_CTRLYAST. It also says:
> >> >=20
> >> > "This function code is also used to disable the AST."
> >> >=20
> >> > but I cannot figure out the arguments of the QIOW call that would disab=
> >le the AST.
> >> >=20
> >> > How does one disable the AST?
> >>=20
> >> Tom,
> >>=20
> >> From the referenced page:
> >>=20
> >> "5.4.3.2 Enable Ctrl/C AST and Enable Ctrl/Y AST Function Modifiers
> >>=20
> >> Both set mode functions can take the enable Ctrl/C AST and enable Ctrl/Y =
> >AST function modifiers. These function modifiers request the terminal drive=
> >r to queue an AST for the requesting process when you press Ctrl/C or Ctrl/=
> >Y. The following combinations of function code and modifier are provided:
> >>=20
> >> IO$_SETMODE!IO$M_CTRLCAST---Enable Ctrl/C AST
> >> IO$_SETMODE!IO$M_CTRLYAST---Enable Ctrl/Y AST=20
> >>=20
> >> These function code modifier pairs take the following device- or function=
> >-dependent arguments:
> >>=20
> >> P1---Address of the AST service or 0 if the corresponding AST is disa=
> >bled
> >> P2---AST parameter
> >> P3---Access mode to deliver AST (maximized with caller's access mode)=
> >"
> >>=20
> >> Note the description of P1, to wit: "... 0 if the corresponding AST is di=
> >sabled". Admittedly, the English could be better ("is disabled" would proba=
> >bly be better described as "is to be disabled.").
> >>=20
> >> - Bob Gezelter, http://www.rlgsc.com
> >I tried this:
> >
> > sts =3D sys$qiow ( ,
> > 1 %val(chn),
> > 1 %val(IO$_SETMODE.or.IO$M_CTRLYAST),
> > 1 iosb,,,%VAL(0),,,,,)
> >
> >but it does not disable the AST. What am I missing?
>
> What AST is being delivered when you issue CTRL/Y?
>
The AST that was set up using this code:
sts = sys$qiow ( ,
1 %val(chn),
1 %val(IO$_SETMODE .or.
1 IO$M_CTRLYAST),
1 iosb,,,nulirpast,,,,,)
It still runs even if I try to cancel it with this code:
sts = sys$qiow ( ,
1 %val(chn),
1 %val(IO$_SETMODE .or.
1 IO$M_CTRLYAST),
1 iosb,,,%val(0),,,,,)
More information about the Info-vax
mailing list