SETCTL

Modify the operation of control characters

 

 

 

VSupported on OpenVMS
xcall SETCTL(character, action[, character, ...])

Arguments

character

A field, literal, or record that contains the control character whose action is to be modified: (a)

'C' = ctrl+c

'T' = ctrl+t

'Y' = ctrl+y

action

An expression whose value specifies how the control character should operate: (n)

If character is 'C':

0 = Ignore ctrl+c.

1, 2 = Generate fatal error.

If character is 'T':

0 = Disable ctrl+t status display.

1 = Enable ctrl+t status display.

If character is 'Y':

0 = Disable DCL break or quit character, ignore ctrl+y.

1, 2 = Disable DCL break or quit character, generate fatal error.

3 = Enable DCL break or quit character, ignore ctrl+y.

4, 5 = Enable DCL break or quit character, generate fatal error.

Discussion

The SETCTL subroutine modifies the operation of the characters ctrl+c, ctrl+t, and ctrl+y when they are input from the terminal.

The SETCTL subroutine affects only the execution of the program that invokes its action. The original settings are restored when the program is completed normally. If the program is aborted, the original settings may not be restored.

The following actions are equivalent to the specified SETCTL calls: