main.h revision d522f475
1/* $XTermId: main.h,v 1.38 2008/01/27 17:40:31 tom Exp $ */
2
3/*
4 * Copyright 2000-2007,2008 by Thomas E. Dickey
5 *
6 *                         All Rights Reserved
7 *
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:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
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.
26 *
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
30 * authorization.
31 *
32 * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
33 *
34 *                         All Rights Reserved
35 *
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.
43 *
44 *
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
51 * SOFTWARE.
52 */
53#ifndef included_main_h
54#define included_main_h
55
56#include <xterm.h>
57
58#ifndef DEFCLASS
59#define DEFCLASS		"XTerm"
60#endif
61
62#ifndef DEFFONT
63#define DEFFONT			"fixed"
64#endif
65
66#ifndef DEFWIDEFONT
67#define DEFWIDEFONT		NULL	/* grab one which is 2x as wide */
68#endif
69
70#ifndef DEFWIDEBOLDFONT
71#define DEFWIDEBOLDFONT		NULL
72#endif
73
74#ifndef DEFXIMFONT
75#define DEFXIMFONT		"*"
76#endif
77
78#ifndef DEFBOLDFONT
79#define DEFBOLDFONT		NULL	/* no bold font uses overstriking */
80#endif
81
82#ifndef DEFBORDER
83#define DEFBORDER		2
84#endif
85
86#ifndef DEFFACENAME
87#define DEFFACENAME		NULL
88#endif
89
90#ifndef DEFFACESIZE
91#define DEFFACESIZE		"14.0"
92#endif
93
94#if OPT_BLINK_TEXT
95#define DEFBLINKASBOLD		False
96#else
97#define DEFBLINKASBOLD		True
98#endif
99
100#ifndef DEFDELETE_DEL
101#define DEFDELETE_DEL		Maybe
102#endif
103
104#ifndef DEF_BACKARO_ERASE
105#define DEF_BACKARO_ERASE	False
106#endif
107
108#ifndef DEF_COLOR4
109#define DEF_COLOR4		"blue2"		/* see XTerm-col.ad */
110#endif
111
112#ifndef DEF_COLOR12
113#define DEF_COLOR12		"rgb:5c/5c/ff"	/* see XTerm-col.ad */
114#endif
115
116#ifndef DEF_INITIAL_ERASE
117#define DEF_INITIAL_ERASE	False
118#endif
119
120#ifndef DEF_POINTER_MODE
121#define DEF_POINTER_MODE	pNoMouse
122#endif
123
124#ifndef DEF_PTY_STTY_SIZE
125#if defined(linux) || defined(__APPLE__)
126#define DEF_PTY_STTY_SIZE	False
127#else
128#define DEF_PTY_STTY_SIZE	True
129#endif
130#endif
131
132#ifndef PROJECTROOT
133#define PROJECTROOT		"/usr/X11R6"
134#endif
135
136/*
137 * The configure script quotes PROJECTROOT's value.
138 * imake does not quote PROJECTROOT's value.
139 */
140#ifdef HAVE_CONFIG_H
141#define DEFLOCALEFILTER2(x)	x
142#else
143#define DEFLOCALEFILTER2(x)	#x
144#endif
145
146/*
147 * If the configure script finds luit, we have the path directly.
148 */
149#ifdef LUIT_PATH
150#define DEFLOCALEFILTER		LUIT_PATH
151#else
152#define DEFLOCALEFILTER1(x)	DEFLOCALEFILTER2(x)
153#define DEFLOCALEFILTER		DEFLOCALEFILTER1(PROJECTROOT) "/bin/luit"
154#endif
155
156#endif	/* included_main_h */
157