Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!linus!raybed2!applicon!bambi!peterson!peterson From: peterson@peterson.applicon.UUCP Newsgroups: comp.sys.mac.programmer Subject: Reading chars from serial port Message-ID: <77900004@peterson> Date: 20 Jul 88 10:55:00 GMT Lines: 20 Nf-ID: #N:peterson:77900004:000:726 Nf-From: peterson.applicon.UUCP!peterson Jul 20 06:55:00 1988 I want to read (at fairly high speed) characters from the serial port until I get a certain character. It would also be nice to timeout if there is a large blank period. The Serial Driver routines are not explained very clearly in Inside Mac. I'm not sure if FSRead is capable of reading less characters than you specify (I'm not sure how many characters will be read - only that the last character is a known value). I am trying to read about 64K. This task was easy on my old PC. I just wrote a tight loop polling the serial port. But the Mac does not seem to have an equivalent "GetChar." Somebody must have done this; please help me! Joe Peterson Schlumberger Billerica, Ma uucp: ...mit-eddie!applicon!peterson