4.1bsd vs. Versatec V80

Jaap Akkerhuis jaap at mcvax.UUCP
Sat Oct 1 01:52:07 AEST 1983


Come on folks, the V-80 is not a varian look-a-like. It will not recognise f.i.
a `\f'.
Making weird changes in the system is something you don't want, just two
minutes editing is enough.
What you must do is to change vcat etc.
If the flag `wide' is used, vcat is for the Versatec. The difference between
the V-80 and the `wide' Versatec is that the V-80 is as wide as the varian.
So one just needs to remove the lines as indicated.

		case 'W':		/* Wide: the versatec. */
			varian = 0;
#ifndef V80
			BYTES_PER_LINE = VP_BYTES_PER_LINE;
			BUFFER_SIZE = VP_BUFFER_SIZE;
#endif
			break;

(This code is from vcat.c 4.1BSD around line 380, but it works with the other
filters as well)

Note that in 4.2BSD the documentation tells you it will support the 11'inch
Versatec as well. In fact, it will then decided it is a varian. To do it
properly do around line 360 something like:
	char *hostarg = NULL;
	char *acctfile = NULL;
#ifdef V80
	int versatec = 0;
#endif

#ifdef V80
	if (argv[0][strlen(argv[0])-1] == 'W') { /* Wide: the versatec. */
		versatec++;
	}
#endif

	while (--argc) {
		if (*(*++argv) == '-')
			switch (argv[0][1]) {
			case 'x':
				BYTES_PER_LINE = atoi(&argv[0][2]) / 8;
				BUFFER_SIZE = NLINES * BYTES_PER_LINE;
#ifdef V80
			if(!versatec)
#endif
				varian = BYTES_PER_LINE == 264;
(vcat.c from 4.2BSD, of course, getting 4.2BSD is another problem)

and vcatW is the proper filter for all the Versatec's.

	jaap akkerhuis, {decvax,philabs,ukc}!mcvac!jaap



More information about the Comp.unix.wizards mailing list