Ignore <Ctrl-D>

Jun Cui cui at maccs.dcss.mcmaster.ca
Tue Mar 12 11:11:23 AEST 1991


I'm doing a menu in C, and trying to ignore <Ctrl-d> <Ctrl-c> <Ctrl-z> etc. 
In other words, I would like the program not to be interrupted until user
select 'Quit' from the menu. (If I press <Ctrl-d> when the program is waiting
for user to select the menu, the program will go to infinite loop)

Any hints  would be appreciated.

jun
---
P.S. I'm not a supper user



More information about the Comp.unix.programmer mailing list