Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!haven!mimsy!aplcen!jhunix!ins_adjb From: ins_adjb@jhunix.HCF.JHU.EDU (Daniel Jay Barrett) Newsgroups: comp.sys.amiga Subject: Help aborting serial I/O Message-ID: <6889@jhunix.HCF.JHU.EDU> Date: 29 Aug 88 00:13:08 GMT Organization: Johns Hopkins Univ. Computing Ctr. Lines: 21 I am doing some programming involving the serial device. I want to read from the serial port until either: (a) An "end of data" character is read; or, (b) The user presses a "cancel" gadget. I know how to do (a) but not together with (b). The only device I/O command I really understand is DoIO(), but it does not seem possible to abort a DoIO() in the middle... (is it?). Could somebody please send me a code fragment on how to do this? I assume it needs some type of Wait() loop, but I don't know how to do it. Thanks so much!! -- Dan Barrett ins_adjb@jhunix.UUCP UUCP barrett@cs.jhu.edu (128.220.13.4) ARPA Dept. of Computer Science, Johns Hopkins University, Baltimore, MD 21218