Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uw-beaver Path: utzoo!watmath!clyde!cbosgd!cbdkc1!desoto!cord!hudson!bentley!hoxna!houxm!vax135!cornell!uw-beaver!laser-lovers From: laser-lovers@uw-beaver Newsgroups: fa.laser-lovers Subject: Re: LaserJet as Printer Replacement Message-ID: <1142@uw-beaver> Date: Thu, 9-May-85 13:43:59 EDT Article-I.D.: uw-beave.1142 Posted: Thu May 9 13:43:59 1985 Date-Received: Fri, 10-May-85 06:34:07 EDT Sender: daemon@uw-beaver Organization: U of Washington Computer Science Lines: 19 From: Bruce Wald Appended is a filter for nroff output to a Laserjet, which, in our case, is plugged into a vt-102 on ttyi4. The ^[[5i and ^[[4i are to turn the printer port on and off and would not be needed if the printer had its own line; the rest is to reset the Laserjet margins. Nroff produces some ^[9's at page breaks which have to be filtered out as they default the Laserjet's margins. ----- echo -n '^[[5i^[&l0E^[&l66F^[&a10L^[&l0L' >/dev/ttyi4 cat - | sed 's/^[9//g' >/dev/ttyi4 echo -n '^[E^[[4i' >/dev/ttyi4 ------- Bruce Wald