Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lprint(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

termcap(F)


 lprint(C)                       19 June 1992                       lprint(C)


 Name

    lprint - print to a printer attached to the user's terminal

 Syntax

    lprint [ - ] [ file ]

 Description

    The lprint(C) command accepts a filename to print or ``-'' to read from
    the keyboard.  If the terminal has local printing abilities, it will then
    print the file to a printer attached to the printer port of the terminal.

    This command uses the file /etc/termcap.

 Options


    -  Tells lprint to use the standard input for printing.

    The variables LPR and PRINTER can each be set to `spooler' or `local'.
    These variables let you send files to the spool printer or the terminal's
    local printer, respectively.  The file /usr/bin/spool contains the
    `spooler' setting for both variables.  The file /usr/bin/local contains
    the `local' setting.  The following are a few examples of variable usage:

       lp -option spooler
       LPR=local
       LPR=spooler
       spool lp -option device file


 Files

    /etc/termcap
    /usr/bin/spool
    /usr/bin/local

 Notes

    Only certain terminals have entries in /etc/termcap with this capability
    already defined (for example, Tandy's DT-100 and DT-1, and Hewlett-
    Packard's HP-92).

    To add attached printer capability to the termcap file for a different
    terminal, add entries for PN (start printing) and  PS (end printing) with
    the appropriate control or escape characters for your terminal.

    Terminal communications parameters (such as baud rate and parity) must be
    set up on the terminal by the user.

 See also

    termcap(F)

    ``Using printers'' in the System Administrator's Guide

 Value added

    lprint is an extension of AT&T System V provided by The Santa Cruz Opera-
    tion, Inc.


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