Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!network.ucsd.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!vpnet!serveme!tallboy!news From: sl25@cus.cam.ac.uk (S. Linton) Newsgroups: comp.unix.bsd Subject: Re: Polling for ctrl-C Message-ID: <m0mKTcN-00002HC@bootes.cus.cam.ac.uk> Date: 18 Aug 92 13:29:03 GMT Sender: news@tallboy.chi.il.us Lines: 11 I thknk Ctrl-C trapping is available in recent versions of DJGPP, though I'm not sure what your options are, it doesn't seem to be documented anywhere (hint!). You can always solve your problem, however by simply reading the keyboard each time you would have polled your flag and checking for control-C. If you can't process all input at this time then you can copy the characters you read into a buffer and get them out later (thus implementing enhanced type-ahead at the same time). Steve Linton