Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.amiga Subject: Re: set serial port Message-ID: <8704260236.AA21556@cory.Berkeley.EDU> Date: Sat, 25-Apr-87 21:36:59 EDT Article-I.D.: cory.8704260236.AA21556 Posted: Sat Apr 25 21:36:59 1987 Date-Received: Sun, 26-Apr-87 22:42:09 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 34 You cannot set the serial port's buffer to 1 byte. However, you can use my latest PIPE: device to slave a CLI, then write a terminal program to drive it: newcli PIPE:name/t C Program would then: open the serial.device (somewhat messy, I'll post some general routines to handle generic device stuff momentarily). Open the same PIPE: with modes 1006 (MASTER): fh = Open("PIPE:name/ns31", 1006); Where 's31' is the signal number you want that filehandle to signal you with when there is read data available, 'n' means your writes to the handle never block and always work. In any case, Read()ing from the file handle reads what the CLI gives back to you, and writing sends stuff to the CLI. (Note: I'm assuming you have experience in using EXEC devices). Note that closing the filehandle does not get rid of the CLI, since the CLI does not recognize file EOF's... you must send an 'ENDCLI' command over to it. Also remember that the CLI expects a newline to enter a command line, sending return (13) will not work. Therefore, you would have to scan incomming data over the modem and modify it. -Matt