onintr - determines how the shell responds to an interrupts


onintr [-|label]


This command is a C-shell built-in command.

The onintr(1) command controls the action of the shell on interrupts. Without arguments, it 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 a hyphen (-), it causes all interrupts to be ignored. With label, it causes the shell to execute a "goto label" when an interrupt is received or a child process terminates because it was interrupted.

The onintr command is ignored if the shell is running detached and in system startup files (see FILES in tcsh(1) ), where interrupts are disabled anyway.