The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [pups] BSD 2.11 on an 11/73 + RD54
@ 2002-09-10  0:03 Steven M. Schultz
  0 siblings, 0 replies; 5+ messages in thread
From: Steven M. Schultz @ 2002-09-10  0:03 UTC (permalink / raw)


Hi -

	A few days ago the "getty plays parity games" topic came up
	again.

	I've been thinking about it and looked at the kernel a bit more.
	7e1 is rather firmly in place and I'm not sure turning the 'console'
	(kl/dl) driver into a "LITOUT only" one is a 100% correct way to
	go (the other drivers such as dz, dh, etc remain 7e1 output by
	default).

	Here's a patch for getty/main.c which I think will do what's 
	wanted without having to modify the kernel:

------------snip-------------
*** main.c.dist	Mon Sep  9 16:52:24 2002
--- main.c	Mon Sep  9 16:56:55 2002
***************
*** 384,391 ****
  
  	c = cc;
  	c |= partab[c&0177] & 0200;
! 	if (OP)
! 		c ^= 0200;
  	if (!UB) {
  		outbuf[obufcnt++] = c;
  		if (obufcnt >= OBUFSIZ)
--- 384,401 ----
  
  	c = cc;
  	c |= partab[c&0177] & 0200;
! /*
!  * If "any" parity do nothing otherwise set even parity unless OP is
!  * set.  Since 'ap' is set in the "default" entry of /etc/gettytab this
!  * has the effect of disabling parity on output without having to change
!  * the kernel.
! */
! 	if (!AP) {
! 	   c |= partab[c & 0177] & 0200;
! 	   if (OP)
! 	      c ^= 0200;
! 	}
! 
  	if (!UB) {
  		outbuf[obufcnt++] = c;
  		if (obufcnt >= OBUFSIZ)
--------------snip---------------

	What this does is check the "AP" (AnyParity) flag from /etc/gettytab
	and if NOT set then do the 'even' (or 'odd' if OP is set) parity.

	Since 'ap' is present in the default line of /etc/gettytab the above
	block effectively becomes a no-op unless /etc/gettytab is explicitly
	set for 'ep' or 'op'.

	If someone could test this and report back I'd appreciate it.

	Thanks.

	Steven Schultz
	sms at 2bsd.com



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [pups] BSD 2.11 on an 11/73 + RD54
@ 2002-09-08 15:06 Fred N. van Kempen
  2002-09-09  6:57 ` Tobias Russell
  0 siblings, 1 reply; 5+ messages in thread
From: Fred N. van Kempen @ 2002-09-08 15:06 UTC (permalink / raw)


Hi,

> Currently when I boot, I start off with my terminal set to 19,200 baud
> 8-N-1 but once BSD has booted I have to switch to 19,200 7-E-1
The hardware runs on 8-bit clean channels.  Most UNIX kernels
kinda prefer to use 7e1 or 7o1.


> Can anyone tell me why this is happening and how I fix it so 
> the setting remains on 8-N-1? (stty?)
Once you're logged in to the system, type "stty -parenb bits8" or
"stty -parenb cs8" or "stty -parenb 8" to go back to 8-bit mode.
Then reset your terminal program again :)

> Also, if I can't fix this, will vtserver/vtc run on 7-E-1 comms?
Nope.  VTc requires an 8-bit clean channel (for now).

--fred
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2419 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20020908/3ee85e12/attachment.bin>


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [pups] BSD 2.11 on an 11/73 + RD54
@ 2002-09-08 14:24 Tobias Russell
  2002-09-08 17:35 ` Tom Ivar Helbekkmo
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Russell @ 2002-09-08 14:24 UTC (permalink / raw)


Hi,

I've managed to get a BSD 2.11 root filesystem onto my 11/73 via VTserver
and I am preparing to use vtc to transfer the /usr components.

Currently when I boot, I start off with my terminal set to 19,200 baud
8-N-1 but once BSD has booted I have to switch to 19,200 7-E-1

Can anyone tell me why this is happening and how I fix it so the setting
remains on 8-N-1? (stty?)

Also, if I can't fix this, will vtserver/vtc run on 7-E-1 comms?


Toby






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

end of thread, other threads:[~2002-09-10  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10  0:03 [pups] BSD 2.11 on an 11/73 + RD54 Steven M. Schultz
  -- strict thread matches above, loose matches on Subject: below --
2002-09-08 15:06 Fred N. van Kempen
2002-09-09  6:57 ` Tobias Russell
2002-09-08 14:24 Tobias Russell
2002-09-08 17:35 ` Tom Ivar Helbekkmo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).