Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ken@halcyon.com (Ken Pizzini)
Subject: Re: tty devices
Date: 1999/02/24	[thread overview]
Message-ID: <slrn7d9057.btv.ken@pulsar.halcyon.com> (raw)
In-Reply-To: 36D41A77.9423B3AF@msd.ray.com

On Wed, 24 Feb 1999 10:27:51 -0500, Lawrence Turowski <lpt@msd.ray.com> wrote:
># tip tty00        # tip tty01
>connected...       connected...
>ello               <return>
>    ello           ~.
>        ello       [EOT]
>                   # echo hello > /dev/tty01
>                   # echo hello > /dev/tty01
>                   # echo hello > /dev/tty01
>
>In this case the first letter is dropped.  With other words no letters
>are dropped.  With different words certain letters are dropped in one
>word but not the other.  It is not always dropping letters in a
>particular position.  It is, however, consistent with any particular
>word.  I've messed with the tty setting via stty, I've copied the the
>/etc/ttys, /etc/termcap and other files from Ultrix 4.1.  Nothing seems
>to work.
>
>I have tried not disconnecting (via ~.) in xterm2 and bringing up a
>third xterm and doing the "echo hello > /dev/tty01" from there.  All
>letters, regarldess of what I echo, are output on xterm1 in this case.

I note that the letter "h" has odd parity, whereas the letters
"e", "l", "o", and newline are all even parity.

It looks like Ultrix 4.5 is resetting the stty settings to
enforce even-parity (discard errors) whenever there is no
process holding the tty open.

To verify this, you can try:

# tip tty01
~!sleep 900 >/dev/tty1 &
~.
echo hello >/dev/tty1; echo hello >/dev/tty1; echo hello >/dev/tty1

The "sleep" command above should hold the tty1 device open so that
the stty settings that tip uses on that device are not lost.  I
expect that you will see the desired "hello" messages.

HTH,
		--Ken Pizzini



  reply	other threads:[~1999-02-24  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-24  5:00 tty devices Lawrence Turowski
1999-02-24  5:00 ` Ken Pizzini [this message]
1999-02-24  5:00   ` Cal Dunigan
1999-02-25  5:00     ` Ken Pizzini
1999-02-25  5:00       ` Cal Dunigan
1999-02-25  5:00   ` Lawrence Turowski
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