home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / INC / PR_DEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-21  |  2.6 KB  |  82 lines

  1. /*********************
  2.  *
  3.  *  pr_defs.h [NON-ANSI] - definitions for printer module.
  4.  *
  5.  *  Purpose: This file contains the global variables and tables for the
  6.  *           printer functions.
  7.  *
  8.  *  Blackstar C Function Library
  9.  *  (c) Copyright 1985,1989 Sterling Castle Software
  10.  *
  11.  *******/
  12.  
  13. #ifndef BLIB_CSTACK
  14. #define BLIB_CSTACK 1024        /* c stack size in bytes */
  15. #endif
  16.  
  17. #include "kb_head.h"
  18.  
  19. char rx80attr_[] = {        /* Codes for epson rx-80 */
  20.         ESC,'M',0,    /* elite */
  21.         ESC,'P',0,    /* pica */
  22.         SI,NUL,0,    /* condensed */
  23.         DC2,NUL,0,    /* cancel condensed */
  24.         ESC,'G',0,    /* double strike */
  25.         ESC,'H',0,    /* no double strike */
  26.         ESC,'E',0,    /* letter quality (enhanced mode )*/
  27.         ESC,'F',0,    /* cancel enhanced */
  28.         SO,NUL,0,    /* enlarged (double wide) mode */
  29.         DC4,NUL,0,    /* cancel enlarged mode */
  30.         NUL,NUL,0,    /* no proportional */
  31.         NUL,NUL,0,    /* no cancel propor */
  32.         ESC,'4',0,    /* italics (alternate chars ) */
  33.         ESC,'5',0,    /* cancel alternate chars */
  34.         ESC,'K',0    /* bit image graphics mode */
  35.     };
  36.  
  37. char nec23attr_[] = {        /* Codes for NEC 8023 */
  38.         ESC,0x45,0,    /* elite */
  39.         ESC,0x4e,0,    /* pica */
  40.         ESC,0x51,0,    /* condensed */
  41.         ESC,0x4e,0,    /* cancel condensed */
  42.         ESC,0x21,0,    /* double strike */
  43.         ESC,0x22,0,    /* no double strike */
  44.         NUL,NUL,0,    /* letter quality (enhanced mode )*/
  45.         NUL,NUL,0,    /* cancel enhanced */
  46.         0x0e,NUL,0,    /* enlarged mode */
  47.         0x0f,NUL,0,    /* cancel enlarged mode */
  48.         ESC,0x50,0,    /* proportional */
  49.         ESC,0x4e,0,    /* cancel proportional */
  50.         NUL,NUL,0,    /* doesn't have italics (alternate chars ) */
  51.         NUL,NUL,0,    /* no need to cancel them */
  52.         ESC,'S',0    /* bit image graphics mode */
  53.     };
  54.  
  55. char mt10attr_[] = {            /* Codes for Tally MT1000 */
  56.         NUL,NUL,0,     /* elite */
  57.         ESC,'6',0,    /* pica */
  58.         ESC,'7',0,    /* condensed */
  59.         ESC,'6',0,    /* cancel condensed */
  60.         NUL,NUL,0,    /* double strike */
  61.         NUL,NUL,0,    /* no double strike */
  62.         NUL,NUL,0,    /* letter quality (enhanced mode )*/
  63.         NUL,NUL,0,    /* cancel enhanced */
  64.         0x0e,NUL,0,    /* enlarged mode */
  65.         0x0f,NUL,0,    /* cancel enlarged mode */
  66.         NUL,NUL,0,    /* proportional */
  67.         NUL,NUL,0,    /* cancel proportional */
  68.         NUL,NUL,0,    /* doesn't have italics (alternate chars ) */
  69.         NUL,NUL,0,    /* no need to cancel them */
  70.         NUL,NUL,0    /* bit image graphics mode */
  71.     };
  72.  
  73.  
  74. char mt10tab_[] = {NUL};        /* no tabs */
  75. char rx80tab_[] = {ESC,'e',0x30,0x08,0};
  76. char nec23tab_[] = {ESC,0x28,8,16,24,32,40,48,56,64,72,0};
  77.  
  78. char *prattr_,*prtabs_;
  79.  
  80. char *tprattr_[] = {rx80attr_,nec23attr_,mt10attr_};
  81. char *tprtabs_[] = {rx80tab_,nec23tab_,mt10tab_};
  82.