[comp.sys.amiga.tech] Opening and using CON: and SER:

brianm@sco.COM (Brian Moffet) (10/12/88)

using CON: for read/write:
	I have found that using open/close/read/write
	works better when trying to use the console.  I have
	not had any luck with fopen.

On SER:
	Does anyone know how to set up the serial port for
	XON/XOFF use for input only?  I have a terminal emulator
	which opens the serial device (opendevice()) and does some
	copying to get 2 message ports.  This sets up a situation
	where a ^S from the remote computer will cause the amiga
	to stop sending output.  However, I would like the following:

	^S from amiga when buffer is full
	pass through the ^S recieved from the remote computer.

Does anyone have any suggestions?  As near as I can tell, if you
turn XON/XOFF processing on you get it both ways.  For you unixers
out there, I want "stty ixon -ixoff -ixany"

thanks much
brian
-- 
Brian Moffet			{uunet,decvax!microsoft,ucscc}!sco!brianm
 -or-				...sco!alar!brian
"Evil Geniuses for a better tomoorow!"  My fish and company have policies.
					I have opinions.

papa@pollux.usc.edu (Marco Papa) (10/13/88)

In article <1474@scolex| brianm@sco.COM (Brian Moffet) writes:
|	Does anyone know how to set up the serial port for
|	XON/XOFF use for input only?  I have a terminal emulator
|	which opens the serial device (opendevice()) and does some
|	copying to get 2 message ports.  This sets up a situation
|	where a ^S from the remote computer will cause the amiga
|	to stop sending output.  However, I would like the following:
|	^S from amiga when buffer is full
|	pass through the ^S recieved from the remote computer.
|Does anyone have any suggestions?  As near as I can tell, if you
|turn XON/XOFF processing on you get it both ways.

Yep, you are right. With the current (1.2. & 1.3) serial device there is no
way to set Xon-Xoff only on one side.  Bryce Nesbitt of CBM is rewriting 
the serial device and I swear he told me that the new one for 1.4 will support
separate input and output X-on/X-off.  In the meantime, the only solution is
to by-pass the built in X-on/X-off and do your own checking for CTRL-S, CTRL-Q.

-- Marco Papa
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

usenet@cps3xx.UUCP (Usenet file owner) (10/14/88)

I have a hand written assembly routine that can do serial IO
and could easily be modified to do xon/xoff the way you want it.
It does have a small bug in the output buffering though. If 
you know a little assembly you could fix it up I'm sure.
(I never bother, since I figured out how to correctly use the
serial.device)
(NOTE to orignal poster: I tried emailing you directly, but 
it bounced)

jap@syssun.cl.msu.edu