Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* setting terminal characteristics permanently (eg. baud rate)
@ 1995-05-25  4:00 Michel van der List
  1995-05-26  4:00 ` Scott Ruch
  0 siblings, 1 reply; 2+ messages in thread
From: Michel van der List @ 1995-05-25  4:00 UTC (permalink / raw)


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. 

If I use kermit and talk to the line, I can change the baud rate
fine, and verifying it with 'stty all < /dev/tty00' shows the
speed to be 38400.

Can somebody give me some pointers on how to do this?

 a d v
Thanks a
 e c n        Michel.
-- 
------------------------------------------------------------------
Michel van der List    SmithKline Beecham Pharmaceuticals R & D
vanderlistmj@sb.com    (610) 270-4525



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: setting terminal characteristics permanently (eg. baud rate)
  1995-05-25  4:00 setting terminal characteristics permanently (eg. baud rate) Michel van der List
@ 1995-05-26  4:00 ` Scott Ruch
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Ruch @ 1995-05-26  4:00 UTC (permalink / raw)


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
------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-05-26  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-25  4:00 setting terminal characteristics permanently (eg. baud rate) Michel van der List
1995-05-26  4:00 ` Scott Ruch

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