Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!eos!ptolemy!raymond From: raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) Newsgroups: comp.sys.ibm.pc Subject: Re: Control-Break ignored in Turbo-C graphics mode.... Message-ID: <1075@ptolemy.arc.nasa.gov> Date: 7 Apr 89 18:57:55 GMT References: <89Apr4.202845edt.2759@godzilla.eecg.toronto.edu> <4212@ttidca.TTI.COM> Reply-To: raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) Distribution: na Organization: NASA Ames Research Center, Moffett Field, CA Lines: 13 The problem is that checking for ^C is performed only on system calls (i.e. the I/O routines). When you are in graphics mode, these instructions are not being accessed. The solution is to include a call to kbhit() within a tight loop in graphics mode. This performs an unobtrusive system call during which ^C is serviced. (I assume one call to kbhit does not interfere with a later call?) Now, how to get rid of the ^C echo? -- Eric A. Raymond (raymond@ptolemy.arc.nasa.gov) "A hungry mob is an angry mob"