3 # Sample input filter to print on HP Laser Jet printers
4 # Installed in /usr/local/libexec/hp6l
9 printf "\033&k2G" || exit 2
12 first_two_chars=`expr "$first_line" : '\(..\)'`
14 if [ "$first_two_chars" = "%!" ]; then
16 /usr/local/bin/gs -sPAPERSIZE=${PAPERSIZE} -dSAFER -dNOPAUSE -q -sDEVICE=${DEVICE} \
17 -sOutputFile=/dev/fd/3 - && exit 0
19 echo $first_line && cat && printf "\033&l0H" && exit 0