Newsgroups: comp.os.minix
Subject: Re: chat and tty00 line discipline
References: <36c1a9d6.0@news.syr.edu> <79sova$7pm$1@nusku.cts.com>
Organization: Syracuse University, Syracuse
From: mcconnel@hydra.syr.edu (Terry R. McConnell)
NNTP-Posting-Host: hydra.syr.edu
Message-ID: <36c20746.0@news.syr.edu>
Date: 10 Feb 1999 17:25:10 -0500
X-Trace: 10 Feb 1999 17:25:10 -0500, hydra.syr.edu
Lines: 37
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.ecn.ou.edu!feed1.news.rcn.net!rcn!news.maxwell.syr.edu!news.syr.edu!hydra.syr.edu!mcconnel

In article <79sova$7pm$1@nusku.cts.com>, Will Rose <cwr@cts.com> wrote:
>Terry R. McConnell (mcconnel@hydra.syr.edu) wrote:
>
>: Is there any way to tell the /dev/tty00 driver to set the 8th bit of
>: characters to 0? (i.e., to use space parity.) Doing 
>
>: stty istrip >/dev/tty00 
>
>: doesn't seem to do anything. ( My problem is that I am communicating with
>: a remote getty that is running under an 8-bit clean line discipline, which
>: is necessary for reasons I'd rather not get into here. The remote getty is
>: interpreting everything I send it -- using chat -- as garbage, and the only
>: thing I can figure is that it's a parity problem.)
>
>Strip's an input discipline.  I don't know why the driver is setting the
>8th bit high; the output driver shouldn't mess with stuff at all, unless
>you have OPOST set.  Are you sure you have the number of bits, and the
>number of stop bits, correct?
>

opost is set, and is set by default on /dev/tty00, at least on my
installation (2.0.2). (Anyway, that's what stty -a </dev/tty00 says.)
I guess maybe my problem
is that onlcr is set too. I need to send foo^J^M to a remote machine
using chat, where foo is my username. What actually gets sent would be
foo^M^M, wouldn't it? (because icrnl is also set.)

Doing either stty -opost </dev/tty00 or stty -onlcr </dev/tty00 seems to
have no effect, yet I can see that opost is turned off while, e.g., kermit
is running. How do I do it from the command line? (I am running the above
stty commands as root.) 

-- 
************************************************************************
Terry R. McConnell   Mathematics/304B Carnegie/Syracuse, N.Y. 13244-1150
trmcconn@syr.edu                            http://barnyard.syr.edu/~tmc 
************************************************************************
