home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mxterm.zip / mxterm / data.c < prev    next >
C/C++ Source or Header  |  1992-10-17  |  2KB  |  105 lines

  1. /*
  2.  *    $XConsortium: data.c,v 1.10 91/02/06 14:23:58 gildea Exp $
  3.  */
  4.  
  5. /*
  6.  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  7.  *
  8.  *                         All Rights Reserved
  9.  *
  10.  * Permission to use, copy, modify, and distribute this software and its
  11.  * documentation for any purpose and without fee is hereby granted,
  12.  * provided that the above copyright notice appear in all copies and that
  13.  * both that copyright notice and this permission notice appear in
  14.  * supporting documentation, and that the name of Digital Equipment
  15.  * Corporation not be used in advertising or publicity pertaining to
  16.  * distribution of the software without specific, written prior permission.
  17.  *
  18.  *
  19.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25.  * SOFTWARE.
  26.  */
  27.  
  28. #include "ptyx.h"        /* gets Xt stuff, too */
  29. #include "data.h"
  30. #include <setjmp.h>
  31.  
  32. XPoint T_boxlarge[NBOX] = {
  33.     {0, 0},
  34.     {8, 0},
  35.     {0, 14},
  36.     {-8, 0},
  37.     {0, -14},
  38. };
  39. XPoint T_box2[NBOX] = {
  40.     {0, 0},
  41.     {7, 0},
  42.     {0, 12},
  43.     {-7, 0},
  44.     {0, -12},
  45. };
  46. XPoint T_box3[NBOX] = {
  47.     {0, 0},
  48.     {5, 0},
  49.     {0, 12},
  50.     {-5, 0},
  51.     {0, -12},
  52. };
  53. XPoint T_boxsmall[NBOX] = {
  54.     {0, 0},
  55.     {5, 0},
  56.     {0, 9},
  57.     {-5, 0},
  58.     {0, -9},
  59. };
  60. jmp_buf Tekend;
  61. int Tbcnt = 0;
  62. Char *Tbuffer;
  63. Char *Tbptr;
  64. TekLink *TekRefresh;
  65. Char *Tpushb;
  66. Char *Tpushback;
  67. int Ttoggled = 0;
  68. int bcnt = 0;
  69. Char buffer[BUF_SIZE];
  70. Char *bptr = buffer;
  71. jmp_buf VTend;
  72. XPoint VTbox[NBOX] = {
  73.     {0, 0},
  74.     {0, 0},
  75.     {0, 0},
  76.     {0, 0},
  77.     {0, 0},
  78. };
  79.  
  80. #ifdef DEBUG
  81. int debug = 0;         /* true causes error messages to be displayed */
  82. #endif    /* DEBUG */
  83. XtermWidget term;        /* master data structure for client */
  84. char *xterm_name;    /* argv[0] */
  85. int am_slave = 0;    /* set to 1 if running as a slave process */
  86. int max_plus1;
  87. int pty_mask;
  88. int Select_mask;
  89. int X_mask;
  90. char *ptydev;
  91. char *ttydev;
  92. char log_def_name[] = "XtermLog.XXXXX";
  93. int T_lastx = -1;
  94. int T_lasty = -1;
  95.  
  96. int waitingForTrackInfo = 0;
  97. EventMode eventMode = NORMAL;
  98.  
  99. GC visualBellGC;
  100.  
  101. int VTgcFontMask = GCFont;
  102. int TEKgcFontMask = GCFont;
  103.  
  104. TekWidget tekWidget;
  105.