Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: swr@zeus.unx.dec.com (Scott Ruch)
Subject: Re: setting terminal characteristics permanently (eg. baud rate)
Date: 1995/05/26	[thread overview]
Message-ID: <3q3j8d$6vo@jac.zko.dec.com> (raw)
In-Reply-To: 3q0n0j$j74@phunn1.sb.com

Michel van der List (vandermj%phu614.molbio.sb.com@sb.com) wrote:
: I've been trying to set terminal characteristics on my alpha
: using stty. It seems that no matter what I do, settings return
: back to some sort of default set. From the stty manual page, it
: seems that something like 'stty 38400 < /dev/tty00' should set
: the baud rate on that line to 38400. It does not seem to work
: though. 

You can't change the characteristics permanently as the kernel data 
structures associated with the tty ports are initialized each time the 
tty is opened for the first time.  On some platforms you can set the
state of "CLOCAL" (i.e. modem or non-modem control) with a special ioctl
and the tty driver will remember it.

Your stty command sets the baud rate to 38400 on the tty that has been
opened by the shell, but since it's closed when the command finishes, the
settings are overwritten at the next first open.  You'd need to keep it open
all the time to preserve any non-default settings.


--
------------------------------------------------------------------
Scott Ruch					Unix Systems Group
DEC OSF/1 LAT Engineering
Digital Equipment Corp.				|d|i|g|i|t|a|l|
200 US Rt. 9 North				swr@unx.dec.com
Manalapan, NJ 07726-9455			(908) 577-6082
------------------------------------------------------------------



      reply	other threads:[~1995-05-26  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-25  4:00 setting terminal characteristics permanently (eg. baud rate) Michel van der List
1995-05-26  4:00 ` Scott Ruch [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox