Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: Catching ^C and ^Z Message-ID: <22944:Sep502:57:0490@kramden.acf.nyu.edu> Date: 5 Sep 90 02:57:04 GMT References: Organization: IR Lines: 11 X-Context: BSD In article deen@utopia.rutgers.edu (Cinnamon Raisin) writes: > I am trying to write a quick programme to lock a terminal(TTY) > when I leave it. Essentially I want to capture all the > interrupts that can be sent from the keyboard, such as > SIG_INT,SIG_QUIT and so on. The only reasonable thing I've > found that lets me do this is ioctl(). A public-domain ``lock'' appears in the pty package. It should answer all your questions. Watch c.s.unix. ---Dan