[comp.os.vms] Turning off *Interrupt* Message When Control-C is Typed

forrest@blia.BLI.COM (Jon Forrest) (09/15/87)

(I asked this a while ago but didn't get an answer so I thought I'd
try again.)

I want to be able to type control-c without the *Interrupt* message
being printed (either as shown or in reverse video) without loosing
the special meaning of control-c. This means special terminal modes
such as PASTHRU or other funky approaches aren't acceptable. (Neither
is changing on a system-wide basis the string that is printed
when control-c is typed.)

Any ideas?

Jon Forrest

ucbvax!mtxinu!blia!forrest
{pyramid|voder}!blia!forrest

JOE@FHCRCVAX.BITNET.UUCP (09/16/87)

>I want to be able to type control-c without the *Interrupt* message
>being printed (either as shown or in reverse video) without loosing
>the special meaning of control-c. This means special terminal modes
>such as PASTHRU or other funky approaches aren't acceptable.

Jon,
  If you want to do this from within a program, then you ought to
be able to create a control-c handler which emulates the "special
meaning" of control-c by calling LIB$PAUSE. The basic procedure
for creating a control-c handler is outlined in the I/O Users Reference
Manual, Part 1, Section 8.4.3.2 (Enable CTRL/C AST & CTRL/Y AST
Function Modifiers) and/or 8.4.3.5 (Enable Out-of-Band AST Function
Modifier). Your AST routine should call LIB$PAUSE and also reenable
the CTRL/C AST, as it is a one shot deal.

  Hope this helps.
  Cheers,
  Joe Meadows Jr.       - voice  - (206) 467-4970
  VAX/VMS System Manager / guru in training
  Fred Hutchinson Cancer Research Center
  1124 Columbia St.     - bitnet - JOE@FHCRCVAX
  Seattle Wa. 98104     - arpa   - JOE%FHCRCVAX.BITNET@WISCVM.WISC.EDU