/projects/xterm-261/main.h

https://github.com/felipebuarque/PL-Stats · C Header · 213 lines · 115 code · 37 blank · 61 comment · 1 complexity · badfad69e73ea4e9002b3adde8bb2bb6 MD5 · raw file

  1. /* $XTermId: main.h,v 1.54 2010/06/20 20:22:32 tom Exp $ */
  2. /*
  3. * Copyright 2000-2009,2010 by Thomas E. Dickey
  4. *
  5. * All Rights Reserved
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the
  9. * "Software"), to deal in the Software without restriction, including
  10. * without limitation the rights to use, copy, modify, merge, publish,
  11. * distribute, sublicense, and/or sell copies of the Software, and to
  12. * permit persons to whom the Software is furnished to do so, subject to
  13. * the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included
  16. * in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  21. * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
  22. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  23. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  24. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. *
  26. * Except as contained in this notice, the name(s) of the above copyright
  27. * holders shall not be used in advertising or otherwise to promote the
  28. * sale, use or other dealings in this Software without prior written
  29. * authorization.
  30. *
  31. * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  32. *
  33. * All Rights Reserved
  34. *
  35. * Permission to use, copy, modify, and distribute this software and its
  36. * documentation for any purpose and without fee is hereby granted,
  37. * provided that the above copyright notice appear in all copies and that
  38. * both that copyright notice and this permission notice appear in
  39. * supporting documentation, and that the name of Digital Equipment
  40. * Corporation not be used in advertising or publicity pertaining to
  41. * distribution of the software without specific, written prior permission.
  42. *
  43. *
  44. * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  45. * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  46. * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  47. * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  48. * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  49. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  50. * SOFTWARE.
  51. */
  52. #ifndef included_main_h
  53. #define included_main_h
  54. #include <xterm.h>
  55. #ifndef DEFCLASS
  56. #define DEFCLASS "XTerm"
  57. #endif
  58. #ifndef DEFFONT
  59. #define DEFFONT "fixed"
  60. #endif
  61. #ifndef DEFWIDEFONT
  62. #define DEFWIDEFONT NULL /* grab one which is 2x as wide */
  63. #endif
  64. #ifndef DEFWIDEBOLDFONT
  65. #define DEFWIDEBOLDFONT NULL
  66. #endif
  67. #ifndef DEFXIMFONT
  68. #define DEFXIMFONT "fixed"
  69. #endif
  70. #ifndef DEFBOLDFONT
  71. #define DEFBOLDFONT NULL /* no bold font uses overstriking */
  72. #endif
  73. #ifndef DEFBORDER
  74. #define DEFBORDER 2
  75. #endif
  76. #ifndef DEFFACENAME
  77. #define DEFFACENAME NULL
  78. #endif
  79. #ifndef DEFFACENAME_AUTO
  80. #define DEFFACENAME_AUTO "mono"
  81. #endif
  82. #ifndef DEFFACESIZE
  83. #define DEFFACESIZE "14.0"
  84. #endif
  85. #ifndef DEFFACESIZE
  86. #define DEFFACESIZE_AUTO "8.0"
  87. #endif
  88. #ifndef DEF_ALLOW_COLOR
  89. #define DEF_ALLOW_COLOR True
  90. #endif
  91. #ifndef DEF_ALLOW_FONT
  92. #define DEF_ALLOW_FONT True
  93. #endif
  94. #ifndef DEF_ALLOW_TCAP
  95. #define DEF_ALLOW_TCAP True
  96. #endif
  97. #ifndef DEF_ALLOW_TITLE
  98. #define DEF_ALLOW_TITLE True
  99. #endif
  100. #ifndef DEF_ALLOW_WINDOW
  101. #define DEF_ALLOW_WINDOW False
  102. #endif
  103. #ifndef DEF_DISALLOWED_COLOR
  104. #define DEF_DISALLOWED_COLOR "SetColor,GetColor,GetAnsiColor"
  105. #endif
  106. #ifndef DEF_DISALLOWED_FONT
  107. #define DEF_DISALLOWED_FONT "SetFont,GetFont"
  108. #endif
  109. #ifndef DEF_DISALLOWED_TCAP
  110. #define DEF_DISALLOWED_TCAP "SetTcap,GetTcap"
  111. #endif
  112. #ifndef DEF_DISALLOWED_WINDOW
  113. #define DEF_DISALLOWED_WINDOW "20,21,SetXprop,SetSelection"
  114. #endif
  115. #if OPT_BLINK_TEXT
  116. #define DEFBLINKASBOLD False
  117. #else
  118. #define DEFBLINKASBOLD True
  119. #endif
  120. #ifndef DEFDELETE_DEL
  121. #define DEFDELETE_DEL Maybe
  122. #endif
  123. #ifndef DEF_BACKARO_ERASE
  124. #define DEF_BACKARO_ERASE False
  125. #endif
  126. #ifndef DEF_COLOR4
  127. #define DEF_COLOR4 "blue2" /* see XTerm-col.ad */
  128. #endif
  129. #ifndef DEF_COLOR12
  130. #define DEF_COLOR12 "rgb:5c/5c/ff" /* see XTerm-col.ad */
  131. #endif
  132. #ifndef DEF_INITIAL_ERASE
  133. #define DEF_INITIAL_ERASE False
  134. #endif
  135. #ifndef DEF_MENU_LOCALE
  136. #define DEF_MENU_LOCALE "C"
  137. #endif
  138. #ifndef DEF_POINTER_MODE
  139. #define DEF_POINTER_MODE pNoMouse
  140. #endif
  141. #ifndef DEF_PTY_STTY_SIZE
  142. #if defined(linux) || defined(__APPLE__)
  143. #define DEF_PTY_STTY_SIZE False
  144. #else
  145. #define DEF_PTY_STTY_SIZE True
  146. #endif
  147. #endif
  148. #ifndef DEF_TITLE_MODES
  149. #define DEF_TITLE_MODES 0
  150. #endif
  151. #ifndef PROJECTROOT
  152. #define PROJECTROOT "/usr/X11R6"
  153. #endif
  154. /*
  155. * The configure script quotes PROJECTROOT's value.
  156. * imake does not quote PROJECTROOT's value.
  157. */
  158. #ifdef HAVE_CONFIG_H
  159. #define DEFLOCALEFILTER2(x) x
  160. #else
  161. #define DEFLOCALEFILTER2(x) #x
  162. #endif
  163. /*
  164. * If the configure script finds luit, we have the path directly.
  165. */
  166. #ifdef LUIT_PATH
  167. #define DEFLOCALEFILTER LUIT_PATH
  168. #else
  169. #define DEFLOCALEFILTER1(x) DEFLOCALEFILTER2(x)
  170. #define DEFLOCALEFILTER DEFLOCALEFILTER1(PROJECTROOT) "/bin/luit"
  171. #endif
  172. /*
  173. * See lib/Xt/Resources.c
  174. */
  175. #define MAXRESOURCES 400
  176. #endif /* included_main_h */