Subject: Proposed change to printcap and lpr to supress burst pages.
To: None <tech-userlevel@netbsd.org>
From: Bill Studenmund <wrstuden@zembu.com>
List: tech-userlevel
Date: 03/01/2001 14:30:33
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-1454761158-983484947=:288
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.NEB.4.21.0103011416391.288@candlekeep.d.zembu.com>
We've got an HP printer which always prints header pages when we print to
it using lpd printing. We want to save trees and not do that.
Adding :sh: to the printcap file doesn't help since it only works on files
printed locally. We're using remote lpd printing, and the remote print
code just passes the print job through un-touched. So we have to not
generate a header page in the first place.
The enclosed patch adds a new printcap option, "nh". If it is present, we
won't generate a banner page by default. If the command line contained
options which would have required a header page (-C, -J, or -U), we still
generate one.
Thoughts?
Take care,
Bill
--0-1454761158-983484947=:288
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=diffie
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.21.0103011415470.288@candlekeep.d.zembu.com>
Content-Description: patches
Content-Disposition: ATTACHMENT; FILENAME=diffie
SW5kZXg6IGxwci9scHIuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNT
IGZpbGU6IC9jdnNyb290L2Jhc2VzcmMvdXNyLnNiaW4vbHByL2xwci9scHIu
Yyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTguMTAuMQ0KZGlmZiAtdSAt
cjEuMTguMTAuMSBscHIuYw0KLS0tIGxwci5jCTIwMDAvMTAvMTcgMTk6NTA6
MjMJMS4xOC4xMC4xDQorKysgbHByLmMJMjAwMS8wMy8wMSAyMDoxNDowNg0K
QEAgLTE3MSwxMiArMTcxLDEyIEBADQogCQkJYnJlYWs7DQogDQogCQljYXNl
ICdDJzoJCS8qIGNsYXNzaWZpY2F0aW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