At 10:24 08/10/01 +0100, Colin McKinnon wrote: >I thot about using a FIFO in place of the terminal device....but can that >discriminate the polarity of bidirectional communication (if one process >writes to the FIFO which gets to read the data)? Running two copies of >minicom on a fifo suggests that its a bit more complicated. Anybody any ideas?
I suspected that pseudo TTY's might have something to do with what I was trying to achieve.......only finding any information about them proved quite difficult - I eventually found what I was looking for in the AX25-HOWTO: >Pseudo-TTY devices create a kind of pipe through > which programs designed to talk to tty devices can talk to other > programs designed to talk to tty devices. Each pipe has a master and a > slave end. The master end is generally called `/dev/ptyq*' and the > slave ends are called `/dev/ttyq*'. There is a one to one relationship > between masters and slaves, so /dev/ptyq0 is the master end of a pipe > with /dev/ttyq0 as its slave. It SHOULD work. Wahoo. I love *nix. ......so all I need to do is run a getty on one end, sort out the right stty stuff to ignore the DG control codes (thanks Kevin - getting a list of the codes wasn't a problem but it does use some nasty stuff - ctrl-C for F11, ctrl-Z for dnarrow) and I should be laughing. Is there an easy way to start a getty without modifying inittab? I suppose I also need to think about how to run multiple sessions since the serial port file is explicitly configured in the dosemu config file. Colin -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
