


      CLP(7)                     (Bull-SPS9)                     CLP(7)



      NAME
           clp - Centronics line printer (FDLP board only)

      DESCRIPTION
           /dev/clp refers to a Centronics-type printer connected to
           the FDLP board by means of the DP/Centronics connector on
           the Bull-SPS9 back panel (J6).

           The /dev/clp special device is write-only.  Bytes written
           are printed.  A close causes the driver to send a form feed
           to the device.

           The driver normally interprets the tab (09H) and the line
           feed characters (0AH).  A tab character is expanded into
           sufficient blanks, and a line feed character is converted to
           a return (0DH) and a line feed.  The printer device normally
           interprets a return as a command to start printing in column
           0, a line feed as a command to advance to the next line, and
           a form-feed as a command to advance to the next page.

           Two ioctl(2) system calls are available with the line
           printer driver.  Both use the lprio structure which includes
           the following fields:

                     int lp_version;               /* line printer driver version */
                     int lp_flags;            /* flag bits, see below */
                     #  define LCRCRNL 001    /* expand CR to CR-NL */
                     #  define LNLCRNL 002    /* expand NL to CR-NL */
                     #  define LEXPTAB 004    /* expand TAB to multiple spaces */
                     #  define LCENT   010         /* interface is Centronics */
                     int lp_indent;           /* # of leading blanks on each line */
                     int lp_col;              /* number of columns per line */
                     int lp_line;             /* number of lines per page */
                     int lp_tabs;             /* spaces per tab stop */

           The default values for these fields are:

                     lp_flags:
                          LCRCRNL - off
                          LNLCRNL - on
                          LEXPTAB - on
                          LCENT     - off for /dev/lp, on for /dev/clp
                     lp_indent:     0
                     lp_col:        132
                     lp_line:       66
                     lp_tabs:       8

           All of the values in the structure may be set via an LPRSET
           ioctl, except for the lp_version field which is read-only.
           The current setting of all of the values can be gotten by an
           LPRGET ioctl.




      Page 1                                         (73 A2 02MTA REV1)






      CLP(7)                     (Bull-SPS9)                     CLP(7)



                     #include <sys/lprio.h>
                     ioctl(fildes, command, arg);
                     struct lprio *arg;

           If the lp_flags word has the mappings bits turned off (i.e.,
           all zero) then the line printer driver will not interpret
           any characters on output.
















































      Page 2                                         (73 A2 02MTA REV1)






      CLP(7)                     (Bull-SPS9)                     CLP(7)



      DEVICE CODE
                                    block-type or  standard
           device type         major     minor     character-type file name

           Centronics lp       4    16   char      /dev/clp

      FILES
           /dev/clp
           /drivers/fdlp














































      Page 3                                         (73 A2 02MTA REV1)



