Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Using Software Interrupts for Menu Handling Message-ID: <8806212054.AA00815@cory.Berkeley.EDU> Date: 21 Jun 88 20:54:58 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 13 >You can abort the fgets() by simply sending a close packet to the console >handler. The read in progress will terminate and you'll be able to exit close ?? CMD_FLUSH is what you meant. I haven't tried this, but it ought to work. The nice thing about using CMD_FLUSH is that you can do it multiple times. CLOSEing the file handle would probably crash the machine! In fact, sending any DOS packet from a software interrupt might crash the machine because DOS can only handle waiting for one response at a time (because it expects the returned packet to be the first msg on the port). -Matt