home *** CD-ROM | disk | FTP | other *** search
- /* ==( mip/wdata.c )== */
- /* ----------------------------------------------- */
- /* Pro-C Copyright (C) 1988 - 1990 Vestronix Inc. */
- /* Modification to this source is not supported */
- /* by Vestronix Inc. */
- /* All Rights Reserved */
- /* ----------------------------------------------- */
- /* Written Geo 26-Aug-88 */
- /* Modified Geo 18-Jul-90 See comments below */
- /* ----------------------------------------------- */
- /* %W% (%H% %T%) */
-
- /*
- * Modifications
- *
- * 18-Jul-90 Geo - Overhauled
- * 25-Oct-89 Geo - 1.32 Merge
- */
-
- /*
- * EXTERNs for the Windowing routines
- */
- # include <bench.h>
-
- char snowwait = 0;
- char xmonitor = MONO;
-
- /* input_wx option/control */
- int instos = 0; /* Insert(True) | Overstrike(False) */
- int ichar = 0;
-
- # ifdef NotUsedAnyMore
- int paintchar = '_'; /* char used to paint input field */
- int paintattr = NORMAL; /* attr ... */
- int bsdel = 1; /* Backspace to (True) | Delete on (False) for del */
- char ibuf[81] = "";
- # endif
-
-
- /* The first one is never used */
- unsigned char colour[16] =
- { 0,
- 0x03, /* NORMAL */
- 0x1f, /* REVVID */
- 0x04, /* UNDERLINED */
- 0x83, /* BLINK */
- 0x0f, /* BOLD */
- 0xf0, /* REVVIDBLINK */
- 0xce, /* BOLDUNDER */
- 0x0c, /* BOLDBLINK */
-
- /* Additional user defined colours */
- 0x07, /* USRCOL1 */
- 0x07, /* USRCOL2 */
- 0x07, /* USRCOL3 */
- 0x07, /* USRCOL4 */
- 0x07, /* USRCOL5 */
- 0x07, /* USRCOL6 */
- 0x07 /* USRCOL7 */
- };
-
- /* Not really used
- * - included as 2nd set
- * colour is used as reference table
- */
- unsigned char mono[16] =
- { 0,
- 0x07, /* NORMAL */
- 0x70, /* REVVID */
- 0x01, /* UNDERLINED */
- 0x87, /* BLINK */
- 0x0f, /* BOLD */
- 0xf0, /* REVVIDBLINK */
- 0x09, /* BOLDUNDER */
- 0x8f, /* BOLDBLINK */
-
- /* Additional user defined colours */
- 0x07, /* USRCOL1 */
- 0x07, /* USRCOL2 */
- 0x07, /* USRCOL3 */
- 0x07, /* USRCOL4 */
- 0x07, /* USRCOL5 */
- 0x07, /* USRCOL6 */
- 0x07 /* USRCOL7 */
- };
-
- /*
- * Box descriptions
- */
- int boxset = 0;
- # ifdef MSDOS
- unsigned char boxes[][BOXCHCNT] =
- {
- /* Single line */
- {0277, 0332, 0300, 0331, 0303, 0264, 0304, 0263, 0305, 0301, 0302},
- /* Box horizontals are double lines */
- {0270, 0325, 0324, 0276, 0306, 0265, 0315, 0263, 0330, 0317, 0321},
- /* Box sides are double lines */
- {0267, 0326, 0323, 0275, 0307, 0266, 0304, 0272, 0327, 0320, 0322},
- /* Double lines */
- {0273, 0311, 0310, 0274, 0314, 0271, 0315, 0272, 0316, 0312, 0313},
- /* Block set */
- {219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219},
- /* Simple set */
- {0053, 0053, 0053, 0053, 0053, 0053, 0055, 0174, 0053, 0053, 0053},
- /* Blank set - just spaces */
- {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '}
- };
- # endif
-
- /*
- * Define max size of above struct
- * - 0 <= boxset < boxmax
- */
- # ifdef MSDOS
- int boxmax = (sizeof(boxes)/BOXCHCNT);
- # else
- int boxmax = 0;
- # endif
-
- # ifdef UNIX
- /*
- * UNIX extras
- */
- char termfile[25]; /* Holds name of extracted term(cap/io) data */
- int mustflush = 0;
-
- # endif
-
- int _wsystart = 0;
- int tty_xlat = TRUE;
- short ttykeys[MAX_TTYKEYS];
- int w_nrows = 24;
- int w_ncols = 80;
- /*
- int w_utility = 0;
- */
- int w_utility = WO_SHADE;
-