xref: /freebsd/share/examples/printing/hpif (revision f5bc5997b24114f383586d72086ad33c5031e895)
1f5bc5997SWolfram Schneider#!/bin/sh
2f5bc5997SWolfram Schneider#
3f5bc5997SWolfram Schneider# hpif - Simple text input filter for lpd for HP-PCL based printers
4f5bc5997SWolfram Schneider# Installed in /usr/local/libexec/hpif
5f5bc5997SWolfram Schneider#
6f5bc5997SWolfram Schneider# Simply copies stdin to stdout.  Ignores all filter arguments.
7f5bc5997SWolfram Schneider# Tells printer to treat LF as CR+LF. Writes a form feed character
8f5bc5997SWolfram Schneider# after printing job.
9f5bc5997SWolfram Schneider
10f5bc5997SWolfram Schneiderprintf "\033&k2G" && cat && printf "\f" && exit 0
11f5bc5997SWolfram Schneiderexit 2
12