LP(7) (Board Software Extension) LP(7)
NAME
lp - line printer interface
DESCRIPTION
lp provides the interface to any of the standard
Printronix-type parallel line printers or the standard
Centronics-type parallel line printers. When the device is
opened or closed, a suitable number of page ejects are
generated. Bytes written are printed using a buffered
interface.
The driver supports the printable ASCII character set (96
characters) and correctly interprets carriage returns,
backspaces, tabs, and form-feeds. The defaults for line
length, indent, and lines per page are 132, 4, and 66,
respectively. Lines longer than the line length minus the
indent (i.e., 128 characters, using the above defaults) are
truncated. These defaults can be accessed and modified with
an external program using the following calls.
The four ioctl(2) system calls available are of the
following form:
#include <sys/lprio.h>
ioctl(fildes, command, arg)
struct lprio *arg;
The commands are:
LPRGET Get the current indent, columns per line, and
lines per page and store in the lprio
structure referenced by arg.
LPRSET Set the current indent, columns per line, and
lines per page from the structure referenced
by arg.
LPRRAW Disable canonical processing and put the
printer in raw mode. In raw mode, no
processing is done on the output characters.
Page 1 May 1989
LP(7) (Board Software Extension) LP(7)
LPRCAN Enable canonical processing. This is the
default state.
FILES
/dev/lp*
SEE ALSO
lp(1), ioctl(2), lp335(7).
Page 2 May 1989