Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 1994 11:58:27 -0500
From:      kelly@fsl.noaa.gov (Sean Kelly)
To:        herrmann@alliant.gsf.de
Cc:        freebsd-questions@freefall.cdrom.com
Subject:   Re: sio driver problem in FreeBSD-2.0R
Message-ID:  <199412211658.AA076559107@yarmouth.fsl.noaa.gov>
In-Reply-To: <3d4gct$27r@cony.gsf.de> (herrmann@alliant.gsf.de)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Guenter" == Guenter Herrmann <herrmann@alliant.gsf.de> writes:

    Guenter> - "stty -f /dev/tty00 <option>" comes back normally, but
    Guenter> subsequent "stty -a -f /dev/tty00" shows no changed
    Guenter> <option>.

Probably because the first stty opens the port, applies the option,
and then closes it.  And when it closes, its settings go back to
default.  The trick I've seen used is

	sleep 100000 </dev/tty00 & # keep port opened for a long time
        stty -f /dev/tty00 <blah>  # set option <blah>
        stty -a -f /dev/tty00      # shows changed <blah>

--k



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412211658.AA076559107>