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

  1. /*********************
  2.  *
  3.  *  co_defs.h [NON-ANSI] - console definition header file.
  4.  *
  5.  *  Purpose: This file contains the memory allocation for the console
  6.  *           globals and tables.
  7.  *
  8.  *  Blackstar C Function Library
  9.  *  (c) Copyright 1985,1989 Sterling Castle Software
  10.  *
  11.  *******/
  12.  
  13. short int co_type_;  /* console type set */
  14.  
  15. char ansicup_[16] = {0x1b,'[','#','0',';','#','0','f',0};/* position cursor */
  16. char ansicuu_[8]  = {0x1b,'[','#','0','A',0};     /* cursor up */
  17. char ansicud_[8]  = {0x1b,'[','#','0','B',0};     /* cursor down */
  18. char ansicuf_[8]  = {0x1b,'[','#','0','C',0};     /* cursor forward */
  19. char ansicub_[8]  = {0x1b,'[','#','0','D',0};     /* cursor backward */
  20. char ansidsr_[8]  = {0x1b,'[','6','n',0};         /* get cursor position */
  21. char ansicpc_[]   = {0x02,0};                     /* col in cursor string */
  22. char ansicpr_[]   = {0x04,0};                     /* row position */
  23. char ansiscp_[]   = {0x1b,'[','s',0};             /* save current cur pos */
  24. char ansircp_[]   = {0x1b,'[','u',0};             /* restore prev cur pos */
  25. char ansied_[]    = {0x1b,'[','2','J',0};         /* erase to end of screen */
  26. char ansiel_[]    = {0x1b,'[','K',0};             /* eeol */
  27. char ansifco_[8]  = {0x1b,'[','#','0','m',0};     /* set foreground color */
  28. char ansibco_[8]  = {0x1b,'[','#','0','m',0};     /* set the background color */
  29. char ansisat_[8]  = {0x1b,'[','#','0','m',0};     /* set character attribute */
  30. char ansimod_[8]  = {0x1b,'[','=','#','0','h',0}; /* set screen mode */
  31.  
  32.  
  33. /*
  34.  *  Values for ANSI driver
  35.  */
  36.  
  37. char *ibmattr_[] = {"00","01","00","00","04","05","00","07","08","00","00"};
  38. char *ibmctrl_[] = {ansicup_,ansicuu_,ansicud_,ansicuf_,ansicub_,ansidsr_,
  39.             ansicpc_,ansicpr_,ansiscp_,ansircp_,ansied_,ansiel_,
  40.             ansifco_,ansibco_,ansisat_,ansimod_};
  41. char *ibmmode_[] = {"00","01","02","03","04","05","06","07","00","00","00"};
  42. char *ibmcolr_[] = {"30","31","32","33","34","35","36","37","38","39",
  43.             "40","41","42","43","44","45","46","47","48","49"};
  44.  
  45. /*
  46.  *  Global table pointers
  47.  */
  48.  
  49. char ***co_attr_,***co_ctrl_,***co_mode_,***co_color_;
  50. char **co_attrptrs_ [] = {ibmattr_,0};
  51. char **co_colrptrs_[] = {ibmcolr_,0};
  52. char **co_ctrlptrs_[] = {ibmctrl_,0};
  53. char **co_modeptrs_[] = {ibmmode_,0};
  54.  
  55.