home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4459 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  873 b 

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