home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20814 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.os.vms
  2. 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
  3. From: lionel@quark.enet.dec.com (Steve Lionel)
  4. Subject: Re: Ctrl-C disabling with VMS sessions]
  5. Message-ID: <1993Jan12.171813.119@dbased.nuo.dec.com>
  6. Lines: 23
  7. Sender: news@dbased.nuo.dec.com (USENET News System)
  8. Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
  9. Organization: Digital Equipment Corporation, Nashua NH
  10. References:  <980674E8559F002FC3@BC750.BITNET>
  11. Date: Tue, 12 Jan 1993 17:18:13 GMT
  12.  
  13.  
  14. In article <980674E8559F002FC3@BC750.BITNET>, WAYNE@BC750.BITNET writes:
  15. |>
  16. |>Is there anyway to disable the Ctrl-C within a VMS session, in DCL level or
  17. |>within an application image ?
  18. |>
  19.  
  20. I suspect that what you really want is to prevent CTRL-C from interrupting
  21. your image or DCL procedure.  By default, pressing CTRL-C does the same thing
  22. as CTRL-Y, so what you need to do is to disable the CTRL-Y interrupt.  This
  23. can be done in DCL by means of SET NOCONTROL=Y or in a program by calling
  24. LIB$DISABLE_CTRL with the appropriate bit mask (see the RTL documentation).
  25.  
  26. The only time CTRL-C does something different is when you've explicitly asked
  27. for a CTRL-C AST by means of a $QIO, which is what Ehud referred to in his
  28. response.  However, I don't think that's what you're really interested in.
  29. --
  30.  
  31. Steve Lionel                    lionel@quark.enet.dec.com
  32. SDT Languages Group
  33. Digital Equipment Corporation
  34. 110 Spit Brook Road
  35. Nashua, NH 03062
  36.