File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / printer
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



printer               Technical Information               printer




The printer  is the device that  transfers human-readable data to
paper.   It can  be plugged  into either a  parallel or  a serial
port, depending upon how your printer is designed.  The former is
faster, whereas  the latter permits the  printer to be positioned
farther  away  from  the  computer.  The  following  descriptions
assume that you have your printer plugged into a parallel port.

COHERENT permits  you to have up to three  parallel ports on your
computer.  Devices  /ddeevv/llpptt11, /ddeevv/llpptt22, and  /ddeevv/llpptt33 control,
respectively, parallel  ports 1,  2, and  3 in cooked  mode.  The
device /ddeevv/llpp  is normally linked  to the above  device that you
wish to  use by  default as your  line printer.  See  the Lexicon
article llpp for more details on these devices.

COHERENT can  print text  on all  ``dumb'' printers that  have no
special   text-formatting  features.    It  also   supports  text
formatting on three  varieties of printers: Epson-compatible dot-
matrix  printers;  laser printers  compatible  with the  Hewlett-
Packard LaserJet  family of printers that  implement the Hewlett-
Packard Page  Control Language (PCL); and  all printers that have
implemented the PostScript language.

***** Dumb Printers *****

To print  on a ``dumb''  printer plugged into  the parallel port,
use the command llpprr.   This command performs some formatting on a
file, and  invokes the line-printer daemon llppdd  to spool the file
for printing.   Using the line-printer  daemon is necessary  in a
multi-user  environment  to   ensure  that  print  requests  from
different users  do not arrive  at the printer at  the same time,
causing  the  printer to  output  a jumbled  mess  (if it  prints
anything at all).

For example, if FFOOOO is a text file, the command


        lpr FOO


prints it  on your dumb printer.  You should  use the llpprr command
to  print  ``simple''  text (such  as  program  listings) on  any
variety of dot-matrix printer.  To print listings or other simple
text on a laser printer, see below.

The  output of  the  text-formatting command  nnrrooffff  can also  be
printed, with  some success, on  dumb printers.  To  represent an
italicized  character, it  prints  the character,  followed by  a
backspace, followed  by an  underscore character; to  represent a
bold-face  character,  it output  the  character,  followed by  a
backspace, followed by  the character again (in the hope, perhaps
naive, that  presenting the same  text twice will  make it appear
bolder).




COHERENT Lexicon                                           Page 1




printer               Technical Information               printer



***** Epson-Compatible Printers *****

The command eeppssoonn massages text into a form that uses some of the
text-formatting features  of the  Epson MX-80 printer  and clones
thereof.  It  is especially  to be used  with text that  has been
formatted  with nnrrooffff,  as described above;  there, it  turns the
``character/backspace/character'' sequence  into the Epson escape
sequences for  emphasized text and italics.   It then directs its
output to  the line-printer device /ddeevv/llpp,  which it assumes has
an Epson-style printer plugged into it.

The following  example uses nnrrooffff  to format file  FFOOOO and prints
the output on an Epson-style printer:


        nroff -ms FOO | epson


***** LaserJet-style Printers *****

COHERENT  includes  a  large suite  of  commands  to support  the
Hewlett-Packard LaserJet  family of  printers, as well  as clones
that run Hewlett-Packard's PCL.

To begin, these commands use the HP devices /ddeevv/hhpp and /ddeevv/rrhhpp.
When you installed COHERENT  on your system, you may have created
these devices; if you did not, however, you should create them by
simply using  the command  llnn to link  /ddeevv/llpp to /ddeevv/hhpp  and to
link /ddeevv/rrllpp to /ddeevv/rrhhpp, as follows:


        ln /dev/lp  /dev/hp
        ln /dev/rlp /dev/rhp


You must log in as the superuser rroooott to execute these commands.

The daemon hhppdd spools files  to be printed on your laser printer.
It works like the line-printer daemon llppdd, as described above.

The command  hhpp prepares files to be printed  on a laser printer.
You should  use it  to prepare  ``simple'' text, such  as program
listings, for  printing on your laser  printer.  Like the command
eeppssoonn, hhpp also massages the output of nnrrooffff into PCL-style escape
sequences; unlike eeppssoonn, however, it does not automatically spool
the file for printing.

The command  hhpprr spools files  to be printed on  a laser printer.
It works  like the command llpprr, except that  it includes a number
of  special features;  for example,  you can  use it  to download
LaserJet ``soft fonts'' into your printer.

The following command uses  nnrrooffff to format file FFOOOO, then prints
on a Hewlett-Packard style laser printer:



COHERENT Lexicon                                           Page 2




printer               Technical Information               printer




        nroff -ms FOO | hp | hpr -B


Note  that the  -BB option  to  hhpprr suppresses  the printing  of a
banner page.

The  text-formatting  command  ttrrooffff  can  create  proportionally
spaced text to be printed  on either a PCL or PostScript printer.
In PCL mode,  ttrrooffff can make full use of  all ``soft fonts'' that
you have loaded onto  your printer.  For example, this manual was
printed by  COHERENT ttrrooffff in PCL  mode driving a Hewlett-Packard
LaserJet III with soft fonts.  See the Lexicon for details on how
to use ttrrooffff with laser printers.

***** PostScript Printers *****

COHERENT includes  two commands  that can drive  PostScript style
printers, such as the Apple LaserWriter.

The command pprrppss is  a PostScript version of the COHERENT command
pprr.  It paginates  text,  and supplies  each page  with a  simple
header.  See its Lexicon entry for details.

As noted  above, ttrrooffff, the  COHERENT text formatter,  can create
proportionally space text  for either PCL or PostScript printers.
In PostScript mode, ttrrooffff  can handle all 35 fonts available with
most  PostScript cartridges;  it supports  full font  scaling and
features such as outlining and shadowing.  It also permits you to
embed ``raw'' PostScript  within your file, to create effects not
already available  with the ttrrooffff  text-formatting language.  For
details on using ttrrooffff with PostScript printers, see its entry in
the Lexicon.

***** Printer Problems *****

The  following paragraphs  describes the  problems  most commonly
encountered with printers, and suggests some solutions.

If you  are trying to access your  parallel interface printer via
special files  /ddeevv/llpp or /ddeevv/llpptt11 and  receive an error message
of the form


        cannot open device /dev/lp


this means  that your printer is not attached  to the device that
COHERENT  associates with  /ddeevv/llpptt11. Your  printer is  at either
attached to /ddeevv/llpptt22 or to /ddeevv/llpptt33. To discover which one, log
in as the superuser rroooott and use ccdd to enter directory /ddeevv. Make
sure that  your printer  is plugged  in, turned on,  and on-line;
then enter the command:




COHERENT Lexicon                                           Page 3




printer               Technical Information               printer




        cat _f_i_l_e > lpt2


_f_i_l_e  can   be  any  readable   file  that  you   specify  (e.g.,
/eettcc/ppaasssswwdd). If  your printer does  not print _f_i_l_e,  then repeat
the command for device /ddeevv/llpptt33:


        cat _f_i_l_e > lpt3


The  command that  works  indicates the  device  into which  your
printer is plugged.

The final step is to  ``link'' the actual location of the printer
to devices  /ddeevv/llpp and /ddeevv/rrllpp, so  that the COHERENT utilities
know how to print a file.  Enter the appropriate commands:


        ln -f lpt2  lp
        ln -f rlpt2 rlp


if your printer is attached to /ddeevv/llpptt22, or


        ln -f lpt3  lp
        ln -f rlpt3 rlp


if your printer was attached to /ddeevv/llpptt33.

If you  have an  Hewlett-Packard LaserJet or  compatible printer,
perform the above  ``link'' operation again but substitute hhpp for
llpp and  rrhhpp for  rrllpp. This  allows the command  hhpprr to  find your
printer.

If you are using a serial printer, note that flow control via CTS
(clear-to-send) is not  supported in the ccoomm11 through ccoomm44 family
of devices, but is  available in devices hhss0000rr through hhss0077rr. See
Lexicon articles ccoomm, hhss, and tteerrmmiinnaall for details.

***** See Also *****

eeppssoonn, hhpp,  hhppdd, hhpprr, llpp, llppdd,  llpprr, pprrppss, tteecchhnniiccaall iinnffoorrmmaattiioonn,
ttrrooffff










COHERENT Lexicon                                           Page 4



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.