xref: /dflybsd-src/share/examples/printing/hpif (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino#!/bin/sh
286d7f5d3SJohn Marino#
386d7f5d3SJohn Marino# hpif - Simple text input filter for lpd for HP-PCL based printers
486d7f5d3SJohn Marino# Installed in /usr/local/libexec/hpif
586d7f5d3SJohn Marino#
686d7f5d3SJohn Marino# Simply copies stdin to stdout.  Ignores all filter arguments.
786d7f5d3SJohn Marino# Tells printer to treat LF as CR+LF. Writes a form feed character
886d7f5d3SJohn Marino# after printing job.
986d7f5d3SJohn Marino
1086d7f5d3SJohn Marinoprintf "\033&k2G" && cat && printf "\f" && exit 0
1186d7f5d3SJohn Marinoexit 2
12