How to disable interrupt key strokes???

BURNS gt0178a at prism.gatech.EDU
Fri Sep 14 17:44:25 AEST 1990


in article <25538.26ee215b at kuhub.cc.ukans.edu>, jian at kuhub.cc.ukans.edu says:
> For some reason, I want to disable any interrupt key stroke like Ctrl C, ESC,
> and Ctrl Z. How could I do that by using SHELL or CSHELL command. Any help
> appreciated.

It usually involves giving the stty command for disabling a ctrl-sequence.
It's usually 'stty susp "undel"' (BSD) or 'stty swtch "^-" (SysV) to
disable ^Z, and similarly for the intr (^C) and quit (abort program w/
core dump) interrupt definitions. SysV also allows 'stty -isig' to turn
off interpretation of the control char. (usually ^C) assigned to 'intr',
which has the advantage that you just have to do an 'stty isig' to
re-enable it, instead of remembering what key you assigned to 'intr' and
re-installing the definition. Check your stty man page for exact syntax.
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu



More information about the Comp.unix.shell mailing list