Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ slp(1) — HP-UX 8.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lp(1)

ioctl(2)

lp(7)

slp(1)

NAME

slp − set printing options for a non-serial printer

SYNOPSIS

slp [−a] [−b] [−c cols] [−d] [−i indent] [−k] [−l lines] [−n] [−r] [−C pages] [−O pages]

DESCRIPTION

slp sets printer formatting options such as the number of lines per page, number of characters per line, and indentation.  These characteristics are controlled by the printer driver as described in lp(7). slp acts on the current standard output. 

Options

−a Report all option settings. 

−b Specify a character printer where back spaces pass through the driver unchanged.  The absence of this option indicates a line printer.  The driver takes the necessary action to accommodate backspace characters. 

−ccols Limit the number of columns to be printed to cols. Characters beyond the specified limit are truncated.

−d Reset options to the defaults for the device.  This action is not taken until the next open occurs on the device. 

−iindent Indent indent columns before printing the first column. 

−k Select cooked mode.  Cooked mode must be used with a cooked device special file which is identified by an lp mnemonic that is not preceded by the character r. 

−llines Specify the number of lines per page.  The last new-line character of each page is changed to a form-feed. 

−n Set the page size to infinity.  Since the last new-line of the page is never encountered, no new-line characters are changed to form-feeds. 

−r Select a raw mode for graphics dumps.  All other options are ignored except −a.  If −r option is not given, −k option is assumed. 

−Cpages Eject zero or more pages after the final close of the device. 

−Opages Eject zero or more pages when the device is opened. 

EXAMPLES

In a typical case, the printer is set to 80 columns, no indentation, with no form-feeds between pages:

slp -c80 -i0 -n >/dev/lp

WARNINGS

Use of the slp command in conjunction with the lp spooler (see lp(1)) might cause undesirable side effects.  The spooler model files make assumptions regarding the configuration and can get confused when the default values are altered.  Although most options can be altered without difficulty, special problems sometimes result from adjusting the number of lines and the number of columns per page.

DEPENDENCIES

Series 300/400
The value of cols is forced into the range of 1 to 227, the value of indent from 0 to 227, and the value of lines from 1 to MAXSHORT. 

The uppercase-only flag, the no-overprint flag, the raw-mode flag, and no-page-eject-on-open-or-close flag can be selected (enabled) by appropriate use of the minor number in the mknod(1M) command.  See the HP-UX System Administrator Manual for details. 

If the no-page-eject-on-open-or-close flag is enabled by the mknod(1M) command, the −C and −O options are ignored. 

AUTHOR

slp was developed by HP. 

SEE ALSO

lp(1), ioctl(2), lp(7). 

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026