home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / msdos / graphics / tcxl.arc / TCXLPRN.H < prev    next >
Text File  |  1988-05-01  |  2KB  |  53 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  TCXLPRN.H - TCXL (c) 1987, 1988 by Mike Smedley.                        │
  6.    │                                                                          │
  7.    │  This header file contains function prototypes and definitions for       │
  8.    │  printer functions.                                                      │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if __STDC__
  15. #define _Cdecl
  16. #else
  17. #define _Cdecl cdecl
  18. #endif
  19.  
  20.  
  21. /*---------------------------[ Function Prototypes ]-------------------------*/
  22.  
  23. void     _Cdecl lprintc(int ch);
  24. int      _Cdecl lprintf(const char *format,...);
  25. void     _Cdecl lprintns(char *str,int count);
  26. void     _Cdecl lprints(char *str);
  27. void     _Cdecl lprintsb(char *str,int reps);
  28. void     _Cdecl lprintsu(char *str);
  29. void     _Cdecl scrndump(void);
  30.  
  31.  
  32. /*-----------[ printer escape codes for Epson compatible printers ]----------*/
  33.  
  34.     /*  Example:  lprints(L_BFON"This is bold printing"L_BFOFF);    */
  35.  
  36. #define L_BFOFF     "F"                /*  turns bold faced printing off   */
  37. #define L_BFON      "E"                /*  turns bold faced printing on    */
  38. #define L_DWOFF     "W0"               /*  turns double wide printing off  */
  39. #define L_DWON      "W1"               /*  turns double wide printing on   */
  40. #define L_ELITE     "M"                /*  sets printer in 12 CPI mode     */
  41. #define L_INIT      "@"                /*  initializes printer             */
  42. #define L_ITALOFF   ""                /*  turns italicized printing off   */
  43. #define L_ITALON    ""                /*  turns italicized printing on    */
  44. #define L_PICA      "P"                /*  sets printer in 10 CPI mode     */
  45. #define L_ULOFF     "-0"               /*  turns underlined printing off   */
  46. #define L_ULON      "-1"               /*  turns underlined printing on    */
  47.  
  48.  
  49. /*-----------------------[ Macro-Function Definitions ]----------------------*/
  50.  
  51. #define lcrlf()             lprintc(LF)
  52.  
  53.