Path: utzoo!attcan!utgpu!watmath!watdragon!lotus!rrwood From: rrwood@lotus.waterloo.edu (Roy Wood) Newsgroups: comp.sys.atari.8bit Subject: R: devices Message-ID: <17311@watdragon.waterloo.edu> Date: 17 Oct 89 16:15:16 GMT Sender: daemon@watdragon.waterloo.edu Distribution: na Lines: 22 I've been playing around with my modem (an SX212), trying to do some elementary communications stuff. Basically, the program I've written does the following: 1) open up the keyboard as device #1 (through the K: handler) 2) open the modem as device #2 (through the R: handler) 3) continually executes a loop which i) checks to see if a key has been pressed, and if so, the keystroke is read from device #1, put to device #2, and printed on-screen. ii) tries to read an incoming character from device #2, the modem, and if there is an incoming character, print it. This sounds all well and good, but I can't read from the modem without getting an error. This occurs even when there are incoming characters available. My question is: What am I screwing up? How do I poll the modem to see whether data is available, and then how should I read it? (single character get, or input a string?) What other stupid things am I doing? Any and all advice appreciated, etc., etc., etc. --Roy Wood (rrwood@lotus.waterloo.edu)