proprinter(1) DG/UX R4.11 proprinter(1)
NAME
proprinter - interface filter for a proprinter printer
SYNOPSIS
/usr/lib/lp/bin/proprinter [-a int] [-b ] [-c color]
[-h list] [-l int] [-p ] [-q qmode] [-r int] [-s ]
[-t int] [-v list] [-C ] [-S int] [-T term]
where:
color Color to print in.
list Comma separated list of integral numbers.
int An integral number.
qmode draft, normal, or nlq.
term A terminal type (printer type).
DESCRIPTION
The proprinter filter can be used to select advanced options on a
proprinter compatible printer. This filter takes command line
options, converts these options into proprinter escape sequences, and
sends these sequences to the standard output. The standard input is
also read and passed directly through to the standard output.
Options are:
-a int Timeout after int seconds if the printer is offline or in
some error state. A value of 0 (zero) will turn off the
timeout mechanism.
-b Print in bold type.
-c color Print in color color. Color names should be specified in
lower case characters. The colors available, if any, are
printer dependent.
-h list Set horizontal tab stops at the columns specified in the
comma-separated list of numbers with NO spaces. The list
must be in ascending order. If list is only one number n,
then tab stops are set every n-th column. The default
setting is usually every 8th column and there is a limit to
the number of tab stops allowed.
-l int Set left margin at column int. The default setting is
usually the first column.
-p Select proportional spacing. This will over ride any
character pitch (cpi) setting.
-q qmode Set print quality to qmode. Print quality can be set to
draft, normal, or nlq. The default setting is usually
draft.
-r int Set right margin at column int. The default setting is
usually the last column (80 or 136).
-s Print in shadow type.
-t int Select alternate paper feeder tray int. Some printers may
not have an alternate paper tray; others may have one or
more trays. This may require setting up alternate paper
feeder tray(s) prior to printing. The default is usually
continuous paper feed meaning no tray selection.
-v list Set vertical tab stops at the lines specified in the comma-
separated list of numbers with NO spaces. The list must be
in ascending order. The default setting is usually no
vertical tab stops and there is a limit to the number of
tab stops allowed.
-C Selecting this option will switch to IBM Character Set 2.
-S int Skip int lines at bottom of each page. Same as bottom
margin. If the form length is 66 lines and this option is
set to 6, then each page will have 60 lines of printed
text. This option is sensitive to the current line pitch
(lpi), and the top of form position.
-T term Use Printer type term. The default type is proprinter, but
can be set to one of the available printer specific
proprinter types (e.g. dg6594-proprinter).
Many of these options are printer specific or may not work in
combination, so it is important to check your printers manual. If a
printer does not support a particular feature and the option is
given, then the option will usually be ignored when the file is
printed.
EXAMPLES
The proprinter filter may be access through the lp print service
facility, or may be used directly on the command line. When using
this filter on the command line, you must redirect both the input and
output of the filter. The following are examples of using the
proprinter filter on the command line.
To print file1 in Near Letter Quality mode, issue the following
command:
cat file1 | proprinter -pnlq | lp
To print file1 in blue with left and right margins at 10 and 70
respectively:
cat file1 | proprinter -cblue -l10 -r70 | lp
To print file1 in bold type with vertical tab stops at lines 15 and
20, and in draft mode:
cat file1 | proprinter -b -v15,20 -qdraft | lp
To print file1 with horizontal tab stops every 5 columns
(5,10,15,..):
cat file1 | proprinter -h5 | lp
DIAGNOSTICS
An exit status of 0 is returned if the filter succeeded. If you are
using the proprinter filter through the lp print service and a
printer fault is detected during output (e.g. carrier drop), then an
error message is sent to standard error. This message is forwarded
to the lp scheduler which in turn alerts the user of the fault.
FILES
/usr/lib/lp/terminfo/proprinter
/usr/lib/lp/bin/proprinter
/etc/lp/filter.table
SEE ALSO
lpadmin(1M), lpfilter(1M), lp(1)
NOTES
The proprinter filter is automatically configured into the lp print
service facility. In order to establish this filter as the interface
filter to your printer, you should set the printer input type to
proprinter. Additionally, the printer type should be set to
proprinter or a printer specific proprinter type (e.g.
dg6594-proprinter). See lpadmin(1M) for more details on setting up
printers.
When using the proprinter filter through the lp print service, you
can specify the filter options with the lp -y "modes" option. The lp
options differ from those given to the filter. See lp(1) for more
information on the "-y modes" options.
Licensed material--property of copyright holder(s)