From owner-freebsd-questions Sun Jun 17 15:15: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by hub.freebsd.org (Postfix) with ESMTP id 170D037B406 for ; Sun, 17 Jun 2001 15:14:50 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Received: from tedm.placo.com (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id f5HMEgl63091; Sun, 17 Jun 2001 15:14:42 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , "Mike Meyer" Cc: Subject: RE: Better printing from the command-line Date: Sun, 17 Jun 2001 15:14:42 -0700 Message-ID: <000201c0f77a$e869ea20$1401a8c0@tedm.placo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <3B2C4533.11707.8C0F84@localhost> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >-----Original Message----- >From: owner-freebsd-questions@FreeBSD.ORG >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Philip J. >Koenig >Sent: Sunday, June 17, 2001 5:51 AM >To: Mike Meyer >Cc: questions@FreeBSD.ORG >Subject: Re: Better printing from the command-line > > >On 16 Jun 2001, at 20:51, Mike Meyer boldly uttered: > > >> Philip J. Koenig types: >> > However I'd like to do some *rudimentary* jazzing up of the >> > printouts, ie something as simple as setting the font to 12-pitch >> > instead of 10-pitch so that certain manpages and text documents >> > don't end up with truncated lines. >> >> From the sound of things, you're talking about printing flat ascii >> text. Since these kinds of things aren't standardized, there really >> isn't a generic tool for dealing with them. I've been thinking about >> extending magicfilter to add the ability to specify strings to prefix >> a print job, which might solve this, but haven't done anything yet. >> Personally, I just set those the way I want them on the printer, and >> forget about them. > > >You are correct about what I'm printing, just things like manpages >and configuration files and logs, etc. > >I can't really set the printer a certain way because it depends on >the job, and because I have over half a dozen machines here that >print to that printer from various OS's. > A quick and easy way is to define multiple printcap entries that set the printer to do what you want. For example, suppose that "lp" is connected to the HP. Add definitions for "lp-raw" (unadulterated) or "lp-land" (landscape) or "lp-132" for 132-column printing, etc. etc. When each definition is selected by the program (usually lp -P lp-raw or some such) the associated filter adds in the commands to switch on the special features before the job prints and trails them with the code to switch the printer back to normal mode. Ted Mittelstaedt tedm@toybox.placo.com Author of: The FreeBSD Corporate Networker's Guide Book website: http://www.freebsd-corp-net-guide.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message