Article View: comp.unix.shell
Article #1135Re: How to disable interrupt key strokes???
From: BURNS
Date: Fri, 14 Sep 1990 07:44
Date: Fri, 14 Sep 1990 07:44
18 lines
1494 bytes
1494 bytes
in article <25538.26ee215b@kuhub.cc.ukans.edu>, jian@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@prism.gatech.edu
Technical Details
Message-ID:
<13662@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!psuvax1!rutgers!mephisto!prism!gt0178aReferences:
<25538.26ee215b@kuhub.cc.ukans.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!psuvax1!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS) Newsgroups: comp.unix.shell Subject: Re: How to disable interrupt key strokes??? Message-ID: <13662@hydra.gatech.EDU> Date: 14 Sep 90 07:44:25 GMT References: <25538.26ee215b@kuhub.cc.ukans.edu> Organization: Georgia Institute of Technology Lines: 18