LaserJet printercap for BSD 4.2?

Chris Torek chris at umcp-cs.UUCP
Fri Nov 30 08:53:09 AEST 1984


> ...the LLITOUT mode is slightly broken.  If you do a "stty litout" I
> think it always works but if you just set the appropiate bit with an
> ioctl it doesn't catch.

Someone posted a note about this recently.  If you apply the following
change in ..ioctl (dhioctl, dzioctl, dmfioctl, whatever else you have)
then TIOCLBIS, TIOCLBIC, and TIOCLSET (which change the local mode word)
will force the line parameter registers to be fixed up.

sys/vaxuba/dh.c (original):
	error = ttioctl(tp, cmd, data, flag);
	if (error >= 0) {
		if (cmd == TIOCSETP || cmd == TIOCSETN)
			dhparam(unit);
		return (error);
	}

new:
	error = ttioctl(tp, cmd, data, flag);
	if (error >= 0) {
		if (cmd == TIOCSETP || cmd == TIOCSETN || cmd == TIOCLBIS ||
		    cmd == TIOCLBIC || cmd == TIOCLSET)
			dhparam(unit);
		return (error);
	}

(of course, change "dh" as appropriate).
-- 
(This line accidently left nonblank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix mailing list