aboutsummaryrefslogtreecommitdiff
path: root/share/examples/printing/hpif
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/printing/hpif')
-rw-r--r--share/examples/printing/hpif11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/examples/printing/hpif b/share/examples/printing/hpif
new file mode 100644
index 000000000000..69f1f34c55fd
--- /dev/null
+++ b/share/examples/printing/hpif
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# hpif - Simple text input filter for lpd for HP-PCL based printers
+# Installed in /usr/local/libexec/hpif
+#
+# Simply copies stdin to stdout. Ignores all filter arguments.
+# Tells printer to treat LF as CR+LF. Writes a form feed character
+# after printing job.
+
+printf "\033&k2G" && cat && printf "\f" && exit 0
+exit 2