*BSD News Article 20050


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!sdd.hp.com!crash!fredbox!cyb!loodvrij
From: loodvrij@cyb.fred.com (Bruce 'Loodvrij' Keeler)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: sgtty stuff (NetBSD 0.8)
Message-ID: <CCCIwt.AI@cyb.fred.com>
Date: Thu, 26 Aug 1993 02:57:50 GMT
References: <CC8J0o.7o@cyb.fred.com> <25dl7f$2s0@wzv.win.tue.nl>
Organization: Cacophonous Yodellers' BBS (907) 338-4942 7-E-1
Lines: 73

In article <25dl7f$2s0@wzv.win.tue.nl> guido@gvr.win.tue.nl (Guido van Rooij) writes:
>loodvrij@cyb.fred.com (Bruce 'Loodvrij' Keeler) writes:
>
>>I've been further working on the parity problem I moaned about a few weeks
>>ago (getting the damn thing to use N81 instead of [EO]71).
>
>I can't reproduce the problem. Neither on my 386bsd 0.1.0.2.4 nor
>on NetBSD. Maybe you could post the exact tty settings? (stty everything)
>
>Guido

OK - here we go.  I'm runing stock-out-of-the-box-vanilla-NetBSD-0.8, not
-current or anything BTW.  I'll be upgrading to 0.9 soon in all
probability though, so I guess maybe all this is redundant.

First off, this is a patch that I came up with myself which seems to do the
trick - however I'm *NOT* sure that I've got a proper grasp of the semantics
and therefore the logic involved here - I'd appreciate comments from the
Gurus.
--------------------------------------
*** tty_compat.c.old	Mon Aug 23 15:42:18 1993
--- tty_compat.c	Mon Aug 23 15:44:50 1993
***************
*** 245,251 ****
  	} else {
  		if ((tp->t_flags&LITOUT) && !(oflag&OPOST))
  			flags |= LITOUT;
! 		if (tp->t_flags&PASS8)
  			flags |= PASS8;
  	}
  	
--- 245,251 ----
  	} else {
  		if ((tp->t_flags&LITOUT) && !(oflag&OPOST))
  			flags |= LITOUT;
! 		if (tp->t_flags&PASS8 || cflag&CS8)
  			flags |= PASS8;
  	}
----------------------------------------
And here is the stty -a stuff before and after running the program I posted
previously.

speed 9600 baud; 25 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
	-echoprt -altwerase -noflsh -tostop -mdmbuf -flusho -pendin
	-nokerninfo -extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
	brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb crtscts
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
	quit = ^\; reprint = ^R; start = ^Q; status = <undef>; stop = ^S;
	susp = ^Z; werase = ^W;
-------------------
speed 9600 baud; 25 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
	-echoprt -altwerase -noflsh -tostop -mdmbuf -flusho -pendin
	-nokerninfo -extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
	brkint -inpck -ignpar -parmrk
oflags: opost onlcr oxtabs
cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb crtscts
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
	eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
	quit = ^\; reprint = ^R; start = ^Q; status = <undef>; stop = ^S;
	susp = ^Z; werase = ^W;

Well.  There you have it.

-- 
Bruce J. Keeler (907) 337-8193              | "...and Bruce is in charge    |
Internet: loodvrij@cyb.fred.com             |        of the sheep dip!"     |