lpset(8)
NAME
lpset − set line printer parameters
SYNTAX
/etc/lpset flag ind line col
/etc/lpset [ -r ]
DESCRIPTION
The lpset command with no arguments displays the current printer parameter values. Only the superuser may execute lpset. The printer must not be in use when lpset is executed.
The −r option resets the parameters to the default values (flag = 0, ind = 0, line = 66, col = 132).
The parameters may be changed by specifying the new value of each parameter to lpset, as follows:
flag Flag bits are set by o’ring their value with the flag argument. The FFCLOSE (010) flag causes a page eject on LP close. This flag is normally reset, because the spooler lpr(1) ejects a page after each file is printed. The CAP (020) should be set for 64-character set printers, uppercase only.
ind Number of character spaces to indent from the left margin.
line Number of lines to print per page.
col The column width, that is, number of characters per line.
Parameter changes may be made automatically by including the lpset command in the /etc/rc file.
DIAGNOSTICS
Error messages will be printed if a parameter value is out of range, the printer file /dev/lp cannot be opened, or the printer is active.
FILES
/unix - system namelist
/dev/lp - printer special file