|
|
1.1 root 1: /*
2: * $Source: /orpheus/u1/X11/clients/xterm/RCS/data.c,v $
3: * $Header: data.c,v 1.9 87/08/16 16:31:23 swick Exp $
4: */
5:
6: #include <X11/copyright.h>
7:
8: /*
9: * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
10: *
11: * All Rights Reserved
12: *
13: * Permission to use, copy, modify, and distribute this software and its
14: * documentation for any purpose and without fee is hereby granted,
15: * provided that the above copyright notice appear in all copies and that
16: * both that copyright notice and this permission notice appear in
17: * supporting documentation, and that the name of Digital Equipment
18: * Corporation not be used in advertising or publicity pertaining to
19: * distribution of the software without specific, written prior permission.
20: *
21: *
22: * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
23: * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
24: * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
25: * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
26: * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
27: * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28: * SOFTWARE.
29: */
30:
31: #include <setjmp.h>
32: #include <X11/Xlib.h>
33: #include <X11/Intrinsic.h>
34: #include "ptyx.h"
35:
36: #ifndef lint
37: static char rcs_id[] = "$Header: data.c,v 1.9 87/08/16 16:31:23 swick Exp $";
38: #endif lint
39:
40: XPoint T_boxlarge[NBOX] = {
41: {0, 0},
42: {8, 0},
43: {0, 14},
44: {-8, 0},
45: {0, -14},
46: };
47: XPoint T_box2[NBOX] = {
48: {0, 0},
49: {7, 0},
50: {0, 12},
51: {-7, 0},
52: {0, -12},
53: };
54: XPoint T_box3[NBOX] = {
55: {0, 0},
56: {5, 0},
57: {0, 12},
58: {-5, 0},
59: {0, -12},
60: };
61: XPoint T_boxsmall[NBOX] = {
62: {0, 0},
63: {5, 0},
64: {0, 9},
65: {-5, 0},
66: {0, -9},
67: };
68: jmp_buf Tekend;
69: int Tbcnt = 0;
70: char *Tbuffer;
71: char *Tbptr;
72: TekLink *TekRefresh;
73: char *Tpushb;
74: char *Tpushback;
75: int Ttoggled = 0;
76: int bcnt = 0;
77: char buffer[BUF_SIZE];
78: char *bptr = buffer;
79: jmp_buf VTend;
80: XPoint VTbox[NBOX] = {
81: {0, 0},
82: {0, 0},
83: {0, 0},
84: {0, 0},
85: {0, 0},
86: };
87: XPoint icon_box[NBOX] = {
88: {0, 0},
89: {0, 0},
90: {0, 0},
91: {0, 0},
92: {0, 0},
93: };
94: T_fontsize Tfontsize[TEKNUMFONTS] = {
95: {9, 15}, /* large */
96: {8, 13}, /* #2 */
97: {6, 13}, /* #3 */
98: {6, 10}, /* small */
99: };
100:
101:
102: #ifdef DEBUG
103: int debug = 0; /* true causes error messages to be displayed */
104: #endif DEBUG
105: Terminal term; /* master data structure for client */
106: char *xterm_name; /* argv[0] */
107: int am_slave = 0; /* set to 1 if running as a slave process */
108: char *icon_geom;
109: Boolean iconstartup;
110: int L_flag;
111: int max_plus1;
112: int pty_mask;
113: int re_verse;
114: int save_lines = SAVELINES;
115: int Select_mask;
116: char *window_name;
117: char *title_name;
118: int X_mask;
119: char *curs_shape;
120: char *f_b;
121: char *f_n;
122: char *f_t;
123: char *geo_metry;
124: char *T_geometry = 0;
125: char *ptydev = "/dev/ptyxx";
1.1.1.2 ! root 126: char *ttydev = "/dev/pt/ptXXX";
1.1 root 127: char log_def_name[] = "XtermLog.XXXXX";
128: int T_lastx = -1;
129: int T_lasty = -1;
130:
131: int waitingForTrackInfo = 0;
132: EventMode eventMode = NORMAL;
133: Window menuWindow;
134:
135: GC visualBellGC;
136:
137: int VTgcFontMask = GCFont;
138: int TEKgcFontMask = GCFont;
139: int MenugcFontMask = GCFont;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.