Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / lpr / filters / pjlfilter.sh
blob3fe0ec7beafd375ee3ff7cedbf7688cabee680e5
1 #!/bin/sh
2 # Filter to encapsulate text files in HP PJL format, suitable for use as an
3 # if filter for any printer supporting the HP PJL format, such as the
4 # HP LaserJet IIIsi
5 doescape () {
6 printf "\33%%-12345X"
8 doescape
9 echo @PJL
10 echo @PJL JOB
11 cat
12 doescape
13 doescape
14 echo @PJL
15 echo @PJL EOJ
16 doescape