1 /* $XTermId: data.h,v 1.110 2009/10/12 00:33:08 tom Exp $ */
4 * Copyright 2002-2007,2009 by Thomas E. Dickey
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the
10 * "Software"), to deal in the Software without restriction, including
11 * without limitation the rights to use, copy, modify, merge, publish,
12 * distribute, sublicense, and/or sell copies of the Software, and to
13 * permit persons to whom the Software is furnished to do so, subject to
14 * the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
23 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 * Except as contained in this notice, the name(s) of the above copyright
28 * holders shall not be used in advertising or otherwise to promote the
29 * sale, use or other dealings in this Software without prior written
32 * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
36 * Permission to use, copy, modify, and distribute this software and its
37 * documentation for any purpose and without fee is hereby granted,
38 * provided that the above copyright notice appear in all copies and that
39 * both that copyright notice and this permission notice appear in
40 * supporting documentation, and that the name of Digital Equipment
41 * Corporation not be used in advertising or publicity pertaining to
42 * distribution of the software without specific, written prior permission.
45 * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
46 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
47 * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
48 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
49 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
50 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
54 #ifndef included_data_h
55 #define included_data_h 1
59 extern Widget toplevel;
61 extern XtAppContext app_con;
64 /* actually in vms.c */
67 extern int tt_changed;
68 extern int tt_pasting;
69 extern int tt_new_output;
70 #define VMS_TERM_BUFFER_SIZE 500
75 extern struct q_head read_queue;
80 extern Char *Tpushback;
81 extern TekLink *tekRefreshList;
82 extern TekWidget tekWidget;
83 extern Widget tekshellwidget;
87 extern jmp_buf Tekend;
92 extern char *xterm_name;
93 extern int hold_screen;
95 extern PtyData *VTbuffer;
104 extern PtySelect Select_mask;
105 extern PtySelect X_mask;
106 extern PtySelect pty_mask;
110 extern XtermWidget term;
112 extern SIG_ATOMIC_T need_cleanup;
114 #if defined(HAVE_XKB_BELL_EXT)
115 #include <X11/XKBlib.h> /* has the prototype */
116 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
121 #define XkbBI_MinorError 1
122 #define XkbBI_MajorError 2
123 #define XkbBI_TerminalBell 9
124 #define XkbBI_MarginBell 10
127 extern char *ProgramName;
128 extern Arg ourTopLevelShellArgs[];
129 extern Cardinal number_ourTopLevelShellArgs;
130 extern Atom wm_delete_window;
132 #if HANDLE_STRUCT_NOTIFY
133 /* Flag icon name with "*** " on window output when iconified.
134 * I'd like to do something like reverse video, but I don't
135 * know how to tell this to window managers in general.
137 * mapstate can be IsUnmapped, !IsUnmapped, or -1;
138 * -1 means no change; the other two are set by event handlers
139 * and indicate a new mapstate. !IsMapped is done in the handler.
140 * we worry about IsUnmapped when output occurs. -IAN!
143 #endif /* HANDLE_STRUCT_NOTIFY */
145 typedef struct XTERM_RESOURCE {
156 Boolean hold_screen; /* true if we keep window open */
158 Boolean utmpDisplayId;
168 Boolean hpFunctionKeys;
170 #if OPT_SCO_FUNC_KEYS
171 Boolean scoFunctionKeys;
173 #if OPT_SUN_FUNC_KEYS
174 Boolean sunFunctionKeys; /* %%% should be VT100 widget resource? */
180 #if OPT_INITIAL_ERASE
181 Boolean ptyInitialErase; /* if true, use pty's sense of erase char */
182 Boolean backarrow_is_erase; /* override backspace/delete */
184 Boolean useInsertMode;
186 int zIconBeep; /* beep level when output while iconified */
188 #if OPT_PTY_HANDSHAKE
189 Boolean wait_for_map;
190 Boolean wait_for_map0; /* ...initial value of .wait_for_map */
191 Boolean ptyHandshake; /* use pty-handshaking */
192 Boolean ptySttySize; /* reset TTY size after pty handshake */
195 Boolean sameName; /* Don't change the title or icon name if it is
196 * the same. This prevents flicker on the
197 * screen at the cost of an extra request to
212 extern XTERM_RESOURCE resource;
215 extern int ignore_unused;
218 #endif /* included_data_h */