lp.7 (2010 09)
l
lp(7) lp(7)
(Seires 800 Only)
LPRSET Set the current printer status information from the structure to which arg points.
The
lprio structure used in the LPRGET and
LPRSET requests is defined in <sys/lprio.h>
, and
includes the following members:
short int ind; /* indent */
short int col; /* columns per page */
short int line; /* lines per page */
short int bksp; /* backspace handling flag */
short int open_ej; /* pages to eject on open */
short int close_ej; /* pages to eject on close */
short int raw_mode; /* raw mode flag */
These are remembered across opens, so the indent, page width, and page length can be set with an exter-
nal program. If the
col field is set to zero, the defaults are restored at the next open.
If the backspace handling flag is 0, a character printer is assumed and backspaces are passed through the
driver unchanged. If the flag is a 1, a line printer is assumed, and sufficient print operations are gen-
erated to generate the appropriate overstruck characters.
If the raw mode flag is 0, data sent to the printer is formatted according to indent, columns per page,
lines per page, backspace handling, and pages to eject on open and close.
If the raw mode flag is 1, data sent to the printer is not formatted.
If the raw mode flag is changed from 1 to 0 (raw mode is turned off) and the format settings (indent,
columns per page, etc.) have not been modified, the data is formatted according to the prior format set-
tings.
AUTHOR
lp was developed by HP and AT&T.
FILES
/dev/lp default or standard printer used by some HP-UX commands;
/dev/[r]lp* special files for printers
SEE ALSO
lp(1), slp(1), ioctl(2), cent(7), intro(7).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010