home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!dbased.nuo.dec.com!quark.enet.dec.com!lionel
- From: lionel@quark.enet.dec.com (Steve Lionel)
- Subject: Re: Ctrl-C disabling with VMS sessions]
- Message-ID: <1993Jan12.171813.119@dbased.nuo.dec.com>
- Lines: 23
- Sender: news@dbased.nuo.dec.com (USENET News System)
- Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
- Organization: Digital Equipment Corporation, Nashua NH
- References: <980674E8559F002FC3@BC750.BITNET>
- Date: Tue, 12 Jan 1993 17:18:13 GMT
-
-
- In article <980674E8559F002FC3@BC750.BITNET>, WAYNE@BC750.BITNET writes:
- |>
- |>Is there anyway to disable the Ctrl-C within a VMS session, in DCL level or
- |>within an application image ?
- |>
-
- I suspect that what you really want is to prevent CTRL-C from interrupting
- your image or DCL procedure. By default, pressing CTRL-C does the same thing
- as CTRL-Y, so what you need to do is to disable the CTRL-Y interrupt. This
- can be done in DCL by means of SET NOCONTROL=Y or in a program by calling
- LIB$DISABLE_CTRL with the appropriate bit mask (see the RTL documentation).
-
- The only time CTRL-C does something different is when you've explicitly asked
- for a CTRL-C AST by means of a $QIO, which is what Ehud referred to in his
- response. However, I don't think that's what you're really interested in.
- --
-
- Steve Lionel lionel@quark.enet.dec.com
- SDT Languages Group
- Digital Equipment Corporation
- 110 Spit Brook Road
- Nashua, NH 03062
-