From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 10-JUL-1989 21:43
To:	MRGATE::"ARISIA::EVERHART"
Subj:	RE: Help setting up DEVCTL file for HP LaserJet II

Message-Id:  <8907110132.AA11895@crdgw1.ge.com>
Received: From KL.SRI.COM ([0.0.0.0]) by CRVAX.SRI.COM with TCP; Mon, 10 JUL 89 17:58:21 PDT
Received: from Venus.YCC.Yale.Edu by KL.SRI.COM with TCP; Mon, 10 Jul 89 18:00:02 PDT
Date: Mon, 10 Jul 89 21:03 EDT
From: "Jerry Leichter - LEICHTER-JERRY@CS.YALE.EDU"
 <LEICHTER@Venus.YCC.Yale.Edu>
Subject: RE: Help setting up DEVCTL file for HP LaserJet II
To: pikes!udenva!hjhaveri@boulder.colorado.EDU, INFO-VAX@KL.SRI.COM
X-Vms-To: IN%"pikes!udenva!hjhaveri@boulder.colorado.EDU"

	Could someone mail me the DEVCTL file for an HP LaserJet II.
	We have two known problems with ours:

	1) The last 5 columns of the first line in an 80 column document
	don't get printed. This is in portrait mode and 10 pitch.

	2) In landscape mode, 16.66 pitch, and on a legal size paper,
	only approx. 170 columns are printed.

	I would appreciate if someone could also tell me the commands
	to set/start the print queue & the terminal (settings).

Since this is such a common question, I long ago put together a standard
mailing on it.  I've enclosed it below, and also copied INFO-VAX....

							-- Jerry

	--------------Command file to start up printer------------

Notes:	(a) These setups assume you have your printer attached to TTA0.
		Change the second line - the definition of SYS$LASERJET -
		if that's not the case.
	(b)  If the terminal port you are using has a speed other than
		19200 bps, change the set terminal command (third line)
		as appropriate for your system.  If your interface can
		manage it, I recommend using 19200 bps - my impression is
		that the resulting performance is better, though the
		difference is by no means huge.
	(c)  The queue initialization assumes that you have placed the setup
		modules in file SYS$LIBRARY:LASERJETLIB.TLB.

$ set noon
$ define/system/exec/translation:terminal SYS$LASERJET TTA0:
$ set terminal SYS$LASERJET/perm/nobroadcast/notypeahead/nowrap -
        /speed=19200/width=80/page=0/device_type=unknown
$ set device /spooled=(SYS$PRINT,SYS$SYSDEVICE:) SYS$LASERJET
$ initialize/queue/start/lib=laserjetlib/separate=(reset=reset) -
        /on=SYS$LASERJET/default=(flag,form=portrait) SYS$PRINT
$ define/form/stock=default portrait 1 /desc="Portrait Courier" -
        /setup=(portrait) /length=60/wid=80/margin=(bottom=0)/wrap/notrunc
$ define/form/stock=default landscape 2 /desc="Landscape"/setup=(landscape) -
        /length=45/wid=132/margin=(bottom=0)/wrap/notrunc
$ define/form/stock=default compressed 3 /desc="Compressed Portrait" -
        /setup=(compressed) /length=80/wid=120/margin=(bottom=0) -
        /wrap/notrunc
$ define/form/stock=default clandscape 4 /desc="Compressed Landscape" -
        /setup=(clandscape) -
        /length=64/wid=176/margin=(bottom=0)/wrap/notrunc

	----------------------Setup modules-----------------------

Notes:  (a) Each SETUP module should contain exactly one line; I have broken
		several into two lines to avoid mailer problems.
	(b) Replace all occurences of <ESC> by an ESCAPE character before
		using;
	(c) CLANDSCAPE uses an 8.5-point, 16.66-pitch line printer font that
		is not in the standard LaserJet; I have it on a cartridge,
		number 92286B.  I believe it comes standard on a LaserJet II
		(along, perhaps, with some other fonts, for which you could
		write your own setup modules).
	(d) All the exact values shown below have been "tuned" to go with the
		exact form defintions given above.  They reset spacing to make
		the output look good to my eye.  THEY ASSUME 8.5 x 11 INCH
		PAPER; you'll have to play around with them to get other paper
		sizes to work.  The symptom of a paper size mismatch is sim-
		ple:  The print symbiont will not properly track where top of
		page is, and output on successive pages will wander all over
		the sheet.  In theory, this dependency can be lessened by
		adding /form to the set terminal command given above, in which
		case the symbiont should send an actual form feed, rather than
		using linefeeds for positioning.  I haven't tried this, so I
		don't know if it will actually work.
	(e) All the values have been wrapped in ANSI DCS sequences (i.e.,
		ESC P ... ESC \).  The LaserJet will ignore both ESC P and
		ESC \, but the result is to make the LaserJet commands
		"invisible" to the VMS print symbiont.  This supresses one
		of the two blank pages you otherwise get between jobs.  I
		haven't been able to find a way to supress the other.
	(f) For best results, follow this rule when printing:

		    Use PRINT/PASSALL for .DVI-JEP files (TeX files converted
			using something like Nelson Beebe's dvijep program).
		    Use PRINT[/NOPASSALL] (the default) for "normal"
			ASCII files.

	(g) All this stuff applies to an HP LaserJet+.  I have not tried it
		on a straight LaserJet, nor on a LaserJet II.  (I've gotten
		confirmation that it works right from another site with a
		LaserJet II, however.)

---------------RESET.TXT-----------------
<ESC>P<ESC>E<ESC>\
---------------CLANDSCAPE.TXT----------------
<ESC>P<ESC>E<ESC>&l1O<ESC>&l63F<ESC>(8U<ESC>(s0p16.66h8.5v0s-3b0T
<ESC>&l5.6470C<ESC>\
---------------COMPRESSED.TXT----------------
<ESC>P<ESC>E<ESC>&l0O<ESC>&a5l80M<ESC>&a0R<ESC>&l8D<ESC>&l80F
<ESC>(8U<ESC>(s0p16.66h8.5v0s0b0T<ESC>\
---------------LANDSCAPE.TXT-----------------
<ESC>P<ESC>E<ESC>&l1O<ESC>&l55F<ESC>(8U<ESC>(s0p10h12v0s0b3T<ESC>\
---------------PORTRAIT.TXT------------------
<ESC>P<ESC>E<ESC>&l0O<ESC>&a5180M<ESC>&a0R<ESC>&l60F<ESC>(8U
<ESC>(s0p10h12v0s0b3T<ESC>&k11.4286H<ESC>&a4L<ESC>\
----------------------------------------------

