home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / PROCWRKB.ZIP / BENCH1.ZIP / WIN / MIP / WDATA.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-16  |  3.2 KB  |  139 lines

  1. /* ==( mip/wdata.c )== */
  2. /* ----------------------------------------------- */
  3. /* Pro-C  Copyright (C) 1988 - 1990 Vestronix Inc. */
  4. /* Modification to this source is not supported    */
  5. /* by Vestronix Inc.                               */
  6. /*            All Rights Reserved                  */
  7. /* ----------------------------------------------- */
  8. /* Written   Geo  26-Aug-88                        */
  9. /* Modified  Geo  18-Jul-90  See comments below    */
  10. /* ----------------------------------------------- */
  11. /* %W%  (%H% %T%) */
  12.  
  13. /*
  14.  *  Modifications
  15.  *
  16.  *  18-Jul-90  Geo - Overhauled
  17.  *  25-Oct-89  Geo - 1.32 Merge
  18. */
  19.  
  20. /*
  21.  * EXTERNs for the Windowing routines
  22. */
  23. # include <bench.h>
  24.  
  25. char snowwait = 0;
  26. char xmonitor  = MONO;
  27.  
  28. /* input_wx option/control */
  29. int instos = 0;           /* Insert(True) | Overstrike(False) */
  30. int ichar = 0;
  31.  
  32. # ifdef NotUsedAnyMore
  33. int paintchar = '_';      /* char used to paint input field */
  34. int paintattr = NORMAL;   /* attr ... */
  35. int bsdel = 1;            /* Backspace to (True) | Delete on (False) for  del */
  36. char ibuf[81] = "";
  37. # endif
  38.  
  39.  
  40. /* The first one is never used */
  41. unsigned char colour[16] =
  42. {    0,
  43.     0x03,    /* NORMAL */
  44.     0x1f,    /* REVVID */
  45.     0x04,    /* UNDERLINED */
  46.     0x83,    /* BLINK */
  47.     0x0f,    /* BOLD */
  48.     0xf0,    /* REVVIDBLINK */
  49.     0xce,    /* BOLDUNDER */
  50.     0x0c,    /* BOLDBLINK */
  51.  
  52.     /* Additional user defined colours */
  53.     0x07,    /* USRCOL1 */
  54.     0x07,    /* USRCOL2 */
  55.     0x07,    /* USRCOL3 */
  56.     0x07,    /* USRCOL4 */
  57.     0x07,    /* USRCOL5 */
  58.     0x07,    /* USRCOL6 */
  59.     0x07    /* USRCOL7 */
  60. };
  61.  
  62. /* Not really used
  63.  * - included as 2nd set
  64.  * colour is used as reference table
  65. */
  66. unsigned char mono[16] =
  67. {    0,
  68.     0x07,    /* NORMAL */
  69.     0x70,    /* REVVID */
  70.     0x01,    /* UNDERLINED */
  71.     0x87,    /* BLINK */
  72.     0x0f,    /* BOLD */
  73.     0xf0,    /* REVVIDBLINK */
  74.     0x09,    /* BOLDUNDER */
  75.     0x8f,    /* BOLDBLINK */
  76.  
  77.     /* Additional user defined colours */
  78.     0x07,    /* USRCOL1 */
  79.     0x07,    /* USRCOL2 */
  80.     0x07,    /* USRCOL3 */
  81.     0x07,    /* USRCOL4 */
  82.     0x07,    /* USRCOL5 */
  83.     0x07,    /* USRCOL6 */
  84.     0x07    /* USRCOL7 */
  85. };
  86.  
  87. /*
  88.  * Box descriptions
  89. */
  90. int boxset = 0;
  91. # ifdef MSDOS
  92. unsigned char boxes[][BOXCHCNT] =
  93. {
  94.   /* Single line */
  95.   {0277, 0332, 0300, 0331, 0303, 0264, 0304, 0263, 0305, 0301, 0302},
  96.   /* Box horizontals are double lines */
  97.   {0270, 0325, 0324, 0276, 0306, 0265, 0315, 0263, 0330, 0317, 0321},
  98.   /* Box sides are double lines */
  99.   {0267, 0326, 0323, 0275, 0307, 0266, 0304, 0272, 0327, 0320, 0322},
  100.   /* Double lines */
  101.   {0273, 0311, 0310, 0274, 0314, 0271, 0315, 0272, 0316, 0312, 0313},
  102.   /* Block set */
  103.   {219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219},
  104.   /* Simple set */
  105.   {0053, 0053, 0053, 0053, 0053, 0053, 0055, 0174, 0053, 0053, 0053},
  106.   /* Blank set - just spaces */
  107.   {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '}
  108. };
  109. # endif
  110.  
  111. /*
  112.  * Define max size of above struct
  113.  * - 0 <= boxset < boxmax
  114. */
  115. # ifdef MSDOS
  116. int boxmax = (sizeof(boxes)/BOXCHCNT);
  117. # else
  118. int boxmax = 0;
  119. # endif
  120.  
  121. # ifdef UNIX
  122. /*
  123.  * UNIX extras
  124. */
  125. char termfile[25]; /* Holds name of extracted term(cap/io) data */
  126. int mustflush = 0;
  127.  
  128. # endif
  129.  
  130. int _wsystart = 0;
  131. int tty_xlat = TRUE;
  132. short ttykeys[MAX_TTYKEYS];
  133. int w_nrows = 24;
  134. int w_ncols = 80;
  135. /*
  136. int w_utility = 0;
  137. */
  138. int w_utility = WO_SHADE;
  139.