[comp.sys.mac.programmer] Modem readln from LSP

borcelf@jacobs.cs.orst.edu (Fernando Borcel) (03/07/89)

Hi.  I'm writing a trivial program on lightspeed pascal that reads/writes
to the modem using the standard readln and writeln calls.  I'm having no
problems sending stuff to the modem, but when I try to read what comes from
the modem, I keep getting garbage.  All I'm doing is

open(modem, 'modem:');
...
writeln(modem, 'atdt555-1212');
readln(modem, foo);	<- here I'd like to get the echo from the modem
readln(modem, foobar);	<- here I'd like to get CONNECT,

For some reason, this ain't working.  so, What am I doing wrong?

Reply via e-mail, please

 

		-Fernando Borcel
"Tact is the ability to tell a man he has an open mind when he has a
hole in his head."  Internet:     borcelf@jacobs.cs.ORST.EDU
                    UUCP:{tektronix,hp-pcd}!orstcs!jacobs.cs.orst.edu!borcelf