*BSD News Article 8186


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!sun-barr!cs.utexas.edu!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!wzv!gvr.win.tue.nl!guido
From: guido@gvr.win.tue.nl (Guido van Rooij)
Newsgroups: comp.unix.bsd
Subject: [386bsd] setting terminal parameters
Message-ID: <4097@wzv.win.tue.nl>
Date: 17 Nov 92 16:12:09 GMT
Sender: news@wzv.win.tue.nl
Organization: Guido's home 486 box
Lines: 17

I am trying to get cgd's com-multiport running. One of the ports is
going to be used with a nulmodem cable. Therefor, an stty clocal should
be issued, in order for it to work.
However, I can't find any means on how to do this automatically when re-
booting (unless i'd do a stty -f /dev/com00 clocal in rc.local, which
I consider ugly. Does anyone have another solution?

Another thing is that stty < /dev/<device> 
blocks whenever the device is unused...This seems strange to me.
Also when i do a stty <params> > /dev/device
things block. In stty's sources however, it is explicitly checked
that stty isnt using the wrong rederiction. Still it isn't detected.
I can only imagine that the shell opens the device, and hangs, because
it waits on the open. Why does this go wrong on 386bsd and succeeds on (e.g)
a sun (SunOs 4.1.1)

-Guido