onintr built-in command for tcsh: Control the action of the tcsh shell on interrupts

Format

onintr [-|label]

Description

onintr controls the action of the shell on interrupts. Without arguments, onintr restores the default action of the shell on interrupts, which is to terminate shell scripts or to return to the terminal command input level. With '-', causes all interrupts to be ignored. With label, causes the shell to execute a goto label when an interrupt is received or a child process terminates because it was interrupted.

onintr is ignored if the shell is running detached and in system startup files, where interrupts are disabled anyway.

Related information

goto, tcsh