From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,27f23f6aec1086f9 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,27f23f6aec1086f9 X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,27f23f6aec1086f9 X-Google-Attributes: gidfee84,public X-Google-Thread: 10b612,27f23f6aec1086f9 X-Google-Attributes: gid10b612,public From: ken@halcyon.com (Ken Pizzini) Subject: Re: tty devices Date: 1999/02/24 Message-ID: #1/1 X-Deja-AN: 448082549 References: <36D41A77.9423B3AF@msd.ray.com> Organization: _ User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: ken@halcyon.com Newsgroups: comp.unix.ultrix,comp.unix.questions,comp.unix.osf.osf1,comp.unix.admin On Wed, 24 Feb 1999 10:27:51 -0500, Lawrence Turowski wrote: ># tip tty00 # tip tty01 >connected... connected... >ello > 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