[comp.sys.mac.programmer] Pascal questions

paulm@nikhefk.UUCP (Paul Molenaar) (06/12/88)

I'm very sorry to bother you with these extremely basic questions,
but I need to solve a problem by the end of next week.

As part of a trial-setup we're using Macintoshes (II's) at our
editorial office of a Dutch computer magazine. I introduced the
Macs to get rid of our old wordprocessing stations. The network
is set up, word processors running fine, but there's a slight
communication problem. Our older system did some ascii conversions
while sending a textfile to the composing room. Extended ascii-characters
are translated into a string of other characters (like a-backspace-")
to have to 'antique' compugraphic system get it right.

I need to do that ascii-conversion also in a communication program
for which I obtained the sources. It's in Pascal and that's not
my native language ;) Could anyone please send me a hint on which
route to go? Basically, what has to be done is this:

if MacAscii > 127 then convert(MacAscii)

the convert routine should return the length of the replacing set of
ascii-codes, and the replacing codes themselves. The largest replacement
string is 5 ascii-codes long.

A second note:
Does the Mac Serial automatically handle CTS-signals from the modem? Can
I send an instruction to the MacOS to handle it, or does it need to be
handled from within the communication software? And if so, how to go about...

Thanks in advance....
-- 
        Paul Molenaar

	"Just checking the walls"
		- Basil Fawlty -