


      CCCCLLLLPPPP((((7777))))                       ((((RRRRiiiiddddggggeeee))))                       CCCCLLLLPPPP((((7777))))



      NNNNAAAAMMMMEEEE
           clp - Centronics line printer

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           ////ddddeeeevvvv////ccccllllpppp refers to a Centronics-type printer connected to
           the DP/Centronics connector on the Ridge 32 back panel (J6).

           The ////ddddeeeevvvv////ccccllllpppp 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 _i_o_c_t_l(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 is:

                     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.

                     #include <sys/lprio.h>



      Page 1                                                   (9010-E)






      CCCCLLLLPPPP((((7777))))                       ((((RRRRiiiiddddggggeeee))))                       CCCCLLLLPPPP((((7777))))



                     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.

      DDDDEEEEVVVVIIIICCCCEEEE CCCCOOOODDDDEEEE
                                    _b_l_o_c_k-_t_y_p_e _o_r  _s_t_a_n_d_a_r_d
           _d_e_v_i_c_e _t_y_p_e         _m_a_j_o_r     _m_i_n_o_r     _c_h_a_r_a_c_t_e_r-_t_y_p_e _f_i_l_e _n_a_m_e

           Centronics lp       4    16   char      /dev/clp

      FFFFIIIILLLLEEEESSSS
           /dev/clp
           /drivers/fdlp







































      Page 2                                                   (9010-E)



