jpayne@69
|
1 /****************************************************************************
|
jpayne@69
|
2 * Copyright 2018-2021,2023 Thomas E. Dickey *
|
jpayne@69
|
3 * Copyright 1998-2013,2017 Free Software Foundation, Inc. *
|
jpayne@69
|
4 * *
|
jpayne@69
|
5 * Permission is hereby granted, free of charge, to any person obtaining a *
|
jpayne@69
|
6 * copy of this software and associated documentation files (the *
|
jpayne@69
|
7 * "Software"), to deal in the Software without restriction, including *
|
jpayne@69
|
8 * without limitation the rights to use, copy, modify, merge, publish, *
|
jpayne@69
|
9 * distribute, distribute with modifications, sublicense, and/or sell *
|
jpayne@69
|
10 * copies of the Software, and to permit persons to whom the Software is *
|
jpayne@69
|
11 * furnished to do so, subject to the following conditions: *
|
jpayne@69
|
12 * *
|
jpayne@69
|
13 * The above copyright notice and this permission notice shall be included *
|
jpayne@69
|
14 * in all copies or substantial portions of the Software. *
|
jpayne@69
|
15 * *
|
jpayne@69
|
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
|
jpayne@69
|
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
|
jpayne@69
|
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
|
jpayne@69
|
19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
|
jpayne@69
|
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
|
jpayne@69
|
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
|
jpayne@69
|
22 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
jpayne@69
|
23 * *
|
jpayne@69
|
24 * Except as contained in this notice, the name(s) of the above copyright *
|
jpayne@69
|
25 * holders shall not be used in advertising or otherwise to promote the *
|
jpayne@69
|
26 * sale, use or other dealings in this Software without prior written *
|
jpayne@69
|
27 * authorization. *
|
jpayne@69
|
28 ****************************************************************************/
|
jpayne@69
|
29
|
jpayne@69
|
30 /****************************************************************************/
|
jpayne@69
|
31 /* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 */
|
jpayne@69
|
32 /* and: Eric S. Raymond <esr@snark.thyrsus.com> */
|
jpayne@69
|
33 /* and: Thomas E. Dickey 1995-on */
|
jpayne@69
|
34 /****************************************************************************/
|
jpayne@69
|
35
|
jpayne@69
|
36 /* $Id: MKterm.h.awk.in,v 1.85 2023/04/23 19:15:36 tom Exp $ */
|
jpayne@69
|
37
|
jpayne@69
|
38 /*
|
jpayne@69
|
39 ** term.h -- Definition of struct term
|
jpayne@69
|
40 */
|
jpayne@69
|
41
|
jpayne@69
|
42 #ifndef NCURSES_TERM_H_incl
|
jpayne@69
|
43 #define NCURSES_TERM_H_incl 1
|
jpayne@69
|
44
|
jpayne@69
|
45 #undef NCURSES_VERSION
|
jpayne@69
|
46 #define NCURSES_VERSION "6.5"
|
jpayne@69
|
47
|
jpayne@69
|
48 #include <ncursesw/ncurses_dll.h>
|
jpayne@69
|
49
|
jpayne@69
|
50 #ifdef __cplusplus
|
jpayne@69
|
51 extern "C" {
|
jpayne@69
|
52 #endif
|
jpayne@69
|
53
|
jpayne@69
|
54 /* Make this file self-contained by providing defaults for the HAVE_TERMIO[S]_H
|
jpayne@69
|
55 * definition (based on the system for which this was configured).
|
jpayne@69
|
56 */
|
jpayne@69
|
57
|
jpayne@69
|
58 #ifndef __NCURSES_H
|
jpayne@69
|
59
|
jpayne@69
|
60 typedef struct screen SCREEN;
|
jpayne@69
|
61
|
jpayne@69
|
62 #if 1
|
jpayne@69
|
63 #undef NCURSES_SP_FUNCS
|
jpayne@69
|
64 #define NCURSES_SP_FUNCS 20240427
|
jpayne@69
|
65 #undef NCURSES_SP_NAME
|
jpayne@69
|
66 #define NCURSES_SP_NAME(name) name##_sp
|
jpayne@69
|
67
|
jpayne@69
|
68 /* Define the sp-funcs helper function */
|
jpayne@69
|
69 #undef NCURSES_SP_OUTC
|
jpayne@69
|
70 #define NCURSES_SP_OUTC NCURSES_SP_NAME(NCURSES_OUTC)
|
jpayne@69
|
71 typedef int (*NCURSES_SP_OUTC)(SCREEN*, int);
|
jpayne@69
|
72 #endif
|
jpayne@69
|
73
|
jpayne@69
|
74 #endif /* __NCURSES_H */
|
jpayne@69
|
75
|
jpayne@69
|
76 #undef NCURSES_CONST
|
jpayne@69
|
77 #define NCURSES_CONST const
|
jpayne@69
|
78
|
jpayne@69
|
79 #undef NCURSES_SBOOL
|
jpayne@69
|
80 #define NCURSES_SBOOL char
|
jpayne@69
|
81
|
jpayne@69
|
82 #undef NCURSES_USE_DATABASE
|
jpayne@69
|
83 #define NCURSES_USE_DATABASE 1
|
jpayne@69
|
84
|
jpayne@69
|
85 #undef NCURSES_USE_TERMCAP
|
jpayne@69
|
86 #define NCURSES_USE_TERMCAP 1
|
jpayne@69
|
87
|
jpayne@69
|
88 #undef NCURSES_XNAMES
|
jpayne@69
|
89 #define NCURSES_XNAMES 1
|
jpayne@69
|
90
|
jpayne@69
|
91 /* We will use these symbols to hide differences between
|
jpayne@69
|
92 * termios/termio/sgttyb interfaces.
|
jpayne@69
|
93 */
|
jpayne@69
|
94 #undef TTY
|
jpayne@69
|
95 #undef SET_TTY
|
jpayne@69
|
96 #undef GET_TTY
|
jpayne@69
|
97
|
jpayne@69
|
98 /* Assume POSIX termio if we have the header and function */
|
jpayne@69
|
99 /* #if HAVE_TERMIOS_H && HAVE_TCGETATTR */
|
jpayne@69
|
100 #if 1 && 1
|
jpayne@69
|
101
|
jpayne@69
|
102 #undef TERMIOS
|
jpayne@69
|
103 #define TERMIOS 1
|
jpayne@69
|
104
|
jpayne@69
|
105 #include <termios.h>
|
jpayne@69
|
106 #define TTY struct termios
|
jpayne@69
|
107
|
jpayne@69
|
108 #else /* !HAVE_TERMIOS_H */
|
jpayne@69
|
109
|
jpayne@69
|
110 /* #if HAVE_TERMIO_H */
|
jpayne@69
|
111 #if 1
|
jpayne@69
|
112
|
jpayne@69
|
113 #undef TERMIOS
|
jpayne@69
|
114 #define TERMIOS 1
|
jpayne@69
|
115
|
jpayne@69
|
116 #include <termio.h>
|
jpayne@69
|
117 #define TTY struct termio
|
jpayne@69
|
118
|
jpayne@69
|
119 #else /* !HAVE_TERMIO_H */
|
jpayne@69
|
120
|
jpayne@69
|
121 #if (defined(_WIN32) || defined(_WIN64))
|
jpayne@69
|
122 #if 0
|
jpayne@69
|
123 #include <ncursesw/win32_curses.h>
|
jpayne@69
|
124 #define TTY struct winconmode
|
jpayne@69
|
125 #else
|
jpayne@69
|
126 #include <ncursesw/ncurses_mingw.h>
|
jpayne@69
|
127 #define TTY struct termios
|
jpayne@69
|
128 #endif
|
jpayne@69
|
129 #else
|
jpayne@69
|
130 #undef TERMIOS
|
jpayne@69
|
131 #include <sgtty.h>
|
jpayne@69
|
132 #include <sys/ioctl.h>
|
jpayne@69
|
133 #define TTY struct sgttyb
|
jpayne@69
|
134 #endif /* MINGW32 */
|
jpayne@69
|
135 #endif /* HAVE_TERMIO_H */
|
jpayne@69
|
136
|
jpayne@69
|
137 #endif /* HAVE_TERMIOS_H */
|
jpayne@69
|
138
|
jpayne@69
|
139 #ifdef TERMIOS
|
jpayne@69
|
140 #define GET_TTY(fd, buf) tcgetattr(fd, buf)
|
jpayne@69
|
141 #define SET_TTY(fd, buf) tcsetattr(fd, TCSADRAIN, buf)
|
jpayne@69
|
142 #elif 0 && (defined(_WIN32) || defined(_WIN64))
|
jpayne@69
|
143 #define GET_TTY(fd, buf) _nc_console_getmode(_nc_console_fd2handle(fd),buf)
|
jpayne@69
|
144 #define SET_TTY(fd, buf) _nc_console_setmode(_nc_console_fd2handle(fd),buf)
|
jpayne@69
|
145 #else
|
jpayne@69
|
146 #define GET_TTY(fd, buf) gtty(fd, buf)
|
jpayne@69
|
147 #define SET_TTY(fd, buf) stty(fd, buf)
|
jpayne@69
|
148 #endif
|
jpayne@69
|
149
|
jpayne@69
|
150 #ifndef GCC_NORETURN
|
jpayne@69
|
151 #define GCC_NORETURN /* nothing */
|
jpayne@69
|
152 #endif
|
jpayne@69
|
153
|
jpayne@69
|
154 #define NAMESIZE 256
|
jpayne@69
|
155
|
jpayne@69
|
156 /* The cast works because TERMTYPE is the first data in TERMINAL */
|
jpayne@69
|
157 #define CUR ((TERMTYPE *)(cur_term))->
|
jpayne@69
|
158
|
jpayne@69
|
159 #define auto_left_margin CUR Booleans[0]
|
jpayne@69
|
160 #define auto_right_margin CUR Booleans[1]
|
jpayne@69
|
161 #define no_esc_ctlc CUR Booleans[2]
|
jpayne@69
|
162 #define ceol_standout_glitch CUR Booleans[3]
|
jpayne@69
|
163 #define eat_newline_glitch CUR Booleans[4]
|
jpayne@69
|
164 #define erase_overstrike CUR Booleans[5]
|
jpayne@69
|
165 #define generic_type CUR Booleans[6]
|
jpayne@69
|
166 #define hard_copy CUR Booleans[7]
|
jpayne@69
|
167 #define has_meta_key CUR Booleans[8]
|
jpayne@69
|
168 #define has_status_line CUR Booleans[9]
|
jpayne@69
|
169 #define insert_null_glitch CUR Booleans[10]
|
jpayne@69
|
170 #define memory_above CUR Booleans[11]
|
jpayne@69
|
171 #define memory_below CUR Booleans[12]
|
jpayne@69
|
172 #define move_insert_mode CUR Booleans[13]
|
jpayne@69
|
173 #define move_standout_mode CUR Booleans[14]
|
jpayne@69
|
174 #define over_strike CUR Booleans[15]
|
jpayne@69
|
175 #define status_line_esc_ok CUR Booleans[16]
|
jpayne@69
|
176 #define dest_tabs_magic_smso CUR Booleans[17]
|
jpayne@69
|
177 #define tilde_glitch CUR Booleans[18]
|
jpayne@69
|
178 #define transparent_underline CUR Booleans[19]
|
jpayne@69
|
179 #define xon_xoff CUR Booleans[20]
|
jpayne@69
|
180 #define needs_xon_xoff CUR Booleans[21]
|
jpayne@69
|
181 #define prtr_silent CUR Booleans[22]
|
jpayne@69
|
182 #define hard_cursor CUR Booleans[23]
|
jpayne@69
|
183 #define non_rev_rmcup CUR Booleans[24]
|
jpayne@69
|
184 #define no_pad_char CUR Booleans[25]
|
jpayne@69
|
185 #define non_dest_scroll_region CUR Booleans[26]
|
jpayne@69
|
186 #define can_change CUR Booleans[27]
|
jpayne@69
|
187 #define back_color_erase CUR Booleans[28]
|
jpayne@69
|
188 #define hue_lightness_saturation CUR Booleans[29]
|
jpayne@69
|
189 #define col_addr_glitch CUR Booleans[30]
|
jpayne@69
|
190 #define cr_cancels_micro_mode CUR Booleans[31]
|
jpayne@69
|
191 #define has_print_wheel CUR Booleans[32]
|
jpayne@69
|
192 #define row_addr_glitch CUR Booleans[33]
|
jpayne@69
|
193 #define semi_auto_right_margin CUR Booleans[34]
|
jpayne@69
|
194 #define cpi_changes_res CUR Booleans[35]
|
jpayne@69
|
195 #define lpi_changes_res CUR Booleans[36]
|
jpayne@69
|
196 #define columns CUR Numbers[0]
|
jpayne@69
|
197 #define init_tabs CUR Numbers[1]
|
jpayne@69
|
198 #define lines CUR Numbers[2]
|
jpayne@69
|
199 #define lines_of_memory CUR Numbers[3]
|
jpayne@69
|
200 #define magic_cookie_glitch CUR Numbers[4]
|
jpayne@69
|
201 #define padding_baud_rate CUR Numbers[5]
|
jpayne@69
|
202 #define virtual_terminal CUR Numbers[6]
|
jpayne@69
|
203 #define width_status_line CUR Numbers[7]
|
jpayne@69
|
204 #define num_labels CUR Numbers[8]
|
jpayne@69
|
205 #define label_height CUR Numbers[9]
|
jpayne@69
|
206 #define label_width CUR Numbers[10]
|
jpayne@69
|
207 #define max_attributes CUR Numbers[11]
|
jpayne@69
|
208 #define maximum_windows CUR Numbers[12]
|
jpayne@69
|
209 #define max_colors CUR Numbers[13]
|
jpayne@69
|
210 #define max_pairs CUR Numbers[14]
|
jpayne@69
|
211 #define no_color_video CUR Numbers[15]
|
jpayne@69
|
212 #define buffer_capacity CUR Numbers[16]
|
jpayne@69
|
213 #define dot_vert_spacing CUR Numbers[17]
|
jpayne@69
|
214 #define dot_horz_spacing CUR Numbers[18]
|
jpayne@69
|
215 #define max_micro_address CUR Numbers[19]
|
jpayne@69
|
216 #define max_micro_jump CUR Numbers[20]
|
jpayne@69
|
217 #define micro_col_size CUR Numbers[21]
|
jpayne@69
|
218 #define micro_line_size CUR Numbers[22]
|
jpayne@69
|
219 #define number_of_pins CUR Numbers[23]
|
jpayne@69
|
220 #define output_res_char CUR Numbers[24]
|
jpayne@69
|
221 #define output_res_line CUR Numbers[25]
|
jpayne@69
|
222 #define output_res_horz_inch CUR Numbers[26]
|
jpayne@69
|
223 #define output_res_vert_inch CUR Numbers[27]
|
jpayne@69
|
224 #define print_rate CUR Numbers[28]
|
jpayne@69
|
225 #define wide_char_size CUR Numbers[29]
|
jpayne@69
|
226 #define buttons CUR Numbers[30]
|
jpayne@69
|
227 #define bit_image_entwining CUR Numbers[31]
|
jpayne@69
|
228 #define bit_image_type CUR Numbers[32]
|
jpayne@69
|
229 #define back_tab CUR Strings[0]
|
jpayne@69
|
230 #define bell CUR Strings[1]
|
jpayne@69
|
231 #define carriage_return CUR Strings[2]
|
jpayne@69
|
232 #define change_scroll_region CUR Strings[3]
|
jpayne@69
|
233 #define clear_all_tabs CUR Strings[4]
|
jpayne@69
|
234 #define clear_screen CUR Strings[5]
|
jpayne@69
|
235 #define clr_eol CUR Strings[6]
|
jpayne@69
|
236 #define clr_eos CUR Strings[7]
|
jpayne@69
|
237 #define column_address CUR Strings[8]
|
jpayne@69
|
238 #define command_character CUR Strings[9]
|
jpayne@69
|
239 #define cursor_address CUR Strings[10]
|
jpayne@69
|
240 #define cursor_down CUR Strings[11]
|
jpayne@69
|
241 #define cursor_home CUR Strings[12]
|
jpayne@69
|
242 #define cursor_invisible CUR Strings[13]
|
jpayne@69
|
243 #define cursor_left CUR Strings[14]
|
jpayne@69
|
244 #define cursor_mem_address CUR Strings[15]
|
jpayne@69
|
245 #define cursor_normal CUR Strings[16]
|
jpayne@69
|
246 #define cursor_right CUR Strings[17]
|
jpayne@69
|
247 #define cursor_to_ll CUR Strings[18]
|
jpayne@69
|
248 #define cursor_up CUR Strings[19]
|
jpayne@69
|
249 #define cursor_visible CUR Strings[20]
|
jpayne@69
|
250 #define delete_character CUR Strings[21]
|
jpayne@69
|
251 #define delete_line CUR Strings[22]
|
jpayne@69
|
252 #define dis_status_line CUR Strings[23]
|
jpayne@69
|
253 #define down_half_line CUR Strings[24]
|
jpayne@69
|
254 #define enter_alt_charset_mode CUR Strings[25]
|
jpayne@69
|
255 #define enter_blink_mode CUR Strings[26]
|
jpayne@69
|
256 #define enter_bold_mode CUR Strings[27]
|
jpayne@69
|
257 #define enter_ca_mode CUR Strings[28]
|
jpayne@69
|
258 #define enter_delete_mode CUR Strings[29]
|
jpayne@69
|
259 #define enter_dim_mode CUR Strings[30]
|
jpayne@69
|
260 #define enter_insert_mode CUR Strings[31]
|
jpayne@69
|
261 #define enter_secure_mode CUR Strings[32]
|
jpayne@69
|
262 #define enter_protected_mode CUR Strings[33]
|
jpayne@69
|
263 #define enter_reverse_mode CUR Strings[34]
|
jpayne@69
|
264 #define enter_standout_mode CUR Strings[35]
|
jpayne@69
|
265 #define enter_underline_mode CUR Strings[36]
|
jpayne@69
|
266 #define erase_chars CUR Strings[37]
|
jpayne@69
|
267 #define exit_alt_charset_mode CUR Strings[38]
|
jpayne@69
|
268 #define exit_attribute_mode CUR Strings[39]
|
jpayne@69
|
269 #define exit_ca_mode CUR Strings[40]
|
jpayne@69
|
270 #define exit_delete_mode CUR Strings[41]
|
jpayne@69
|
271 #define exit_insert_mode CUR Strings[42]
|
jpayne@69
|
272 #define exit_standout_mode CUR Strings[43]
|
jpayne@69
|
273 #define exit_underline_mode CUR Strings[44]
|
jpayne@69
|
274 #define flash_screen CUR Strings[45]
|
jpayne@69
|
275 #define form_feed CUR Strings[46]
|
jpayne@69
|
276 #define from_status_line CUR Strings[47]
|
jpayne@69
|
277 #define init_1string CUR Strings[48]
|
jpayne@69
|
278 #define init_2string CUR Strings[49]
|
jpayne@69
|
279 #define init_3string CUR Strings[50]
|
jpayne@69
|
280 #define init_file CUR Strings[51]
|
jpayne@69
|
281 #define insert_character CUR Strings[52]
|
jpayne@69
|
282 #define insert_line CUR Strings[53]
|
jpayne@69
|
283 #define insert_padding CUR Strings[54]
|
jpayne@69
|
284 #define key_backspace CUR Strings[55]
|
jpayne@69
|
285 #define key_catab CUR Strings[56]
|
jpayne@69
|
286 #define key_clear CUR Strings[57]
|
jpayne@69
|
287 #define key_ctab CUR Strings[58]
|
jpayne@69
|
288 #define key_dc CUR Strings[59]
|
jpayne@69
|
289 #define key_dl CUR Strings[60]
|
jpayne@69
|
290 #define key_down CUR Strings[61]
|
jpayne@69
|
291 #define key_eic CUR Strings[62]
|
jpayne@69
|
292 #define key_eol CUR Strings[63]
|
jpayne@69
|
293 #define key_eos CUR Strings[64]
|
jpayne@69
|
294 #define key_f0 CUR Strings[65]
|
jpayne@69
|
295 #define key_f1 CUR Strings[66]
|
jpayne@69
|
296 #define key_f10 CUR Strings[67]
|
jpayne@69
|
297 #define key_f2 CUR Strings[68]
|
jpayne@69
|
298 #define key_f3 CUR Strings[69]
|
jpayne@69
|
299 #define key_f4 CUR Strings[70]
|
jpayne@69
|
300 #define key_f5 CUR Strings[71]
|
jpayne@69
|
301 #define key_f6 CUR Strings[72]
|
jpayne@69
|
302 #define key_f7 CUR Strings[73]
|
jpayne@69
|
303 #define key_f8 CUR Strings[74]
|
jpayne@69
|
304 #define key_f9 CUR Strings[75]
|
jpayne@69
|
305 #define key_home CUR Strings[76]
|
jpayne@69
|
306 #define key_ic CUR Strings[77]
|
jpayne@69
|
307 #define key_il CUR Strings[78]
|
jpayne@69
|
308 #define key_left CUR Strings[79]
|
jpayne@69
|
309 #define key_ll CUR Strings[80]
|
jpayne@69
|
310 #define key_npage CUR Strings[81]
|
jpayne@69
|
311 #define key_ppage CUR Strings[82]
|
jpayne@69
|
312 #define key_right CUR Strings[83]
|
jpayne@69
|
313 #define key_sf CUR Strings[84]
|
jpayne@69
|
314 #define key_sr CUR Strings[85]
|
jpayne@69
|
315 #define key_stab CUR Strings[86]
|
jpayne@69
|
316 #define key_up CUR Strings[87]
|
jpayne@69
|
317 #define keypad_local CUR Strings[88]
|
jpayne@69
|
318 #define keypad_xmit CUR Strings[89]
|
jpayne@69
|
319 #define lab_f0 CUR Strings[90]
|
jpayne@69
|
320 #define lab_f1 CUR Strings[91]
|
jpayne@69
|
321 #define lab_f10 CUR Strings[92]
|
jpayne@69
|
322 #define lab_f2 CUR Strings[93]
|
jpayne@69
|
323 #define lab_f3 CUR Strings[94]
|
jpayne@69
|
324 #define lab_f4 CUR Strings[95]
|
jpayne@69
|
325 #define lab_f5 CUR Strings[96]
|
jpayne@69
|
326 #define lab_f6 CUR Strings[97]
|
jpayne@69
|
327 #define lab_f7 CUR Strings[98]
|
jpayne@69
|
328 #define lab_f8 CUR Strings[99]
|
jpayne@69
|
329 #define lab_f9 CUR Strings[100]
|
jpayne@69
|
330 #define meta_off CUR Strings[101]
|
jpayne@69
|
331 #define meta_on CUR Strings[102]
|
jpayne@69
|
332 #define newline CUR Strings[103]
|
jpayne@69
|
333 #define pad_char CUR Strings[104]
|
jpayne@69
|
334 #define parm_dch CUR Strings[105]
|
jpayne@69
|
335 #define parm_delete_line CUR Strings[106]
|
jpayne@69
|
336 #define parm_down_cursor CUR Strings[107]
|
jpayne@69
|
337 #define parm_ich CUR Strings[108]
|
jpayne@69
|
338 #define parm_index CUR Strings[109]
|
jpayne@69
|
339 #define parm_insert_line CUR Strings[110]
|
jpayne@69
|
340 #define parm_left_cursor CUR Strings[111]
|
jpayne@69
|
341 #define parm_right_cursor CUR Strings[112]
|
jpayne@69
|
342 #define parm_rindex CUR Strings[113]
|
jpayne@69
|
343 #define parm_up_cursor CUR Strings[114]
|
jpayne@69
|
344 #define pkey_key CUR Strings[115]
|
jpayne@69
|
345 #define pkey_local CUR Strings[116]
|
jpayne@69
|
346 #define pkey_xmit CUR Strings[117]
|
jpayne@69
|
347 #define print_screen CUR Strings[118]
|
jpayne@69
|
348 #define prtr_off CUR Strings[119]
|
jpayne@69
|
349 #define prtr_on CUR Strings[120]
|
jpayne@69
|
350 #define repeat_char CUR Strings[121]
|
jpayne@69
|
351 #define reset_1string CUR Strings[122]
|
jpayne@69
|
352 #define reset_2string CUR Strings[123]
|
jpayne@69
|
353 #define reset_3string CUR Strings[124]
|
jpayne@69
|
354 #define reset_file CUR Strings[125]
|
jpayne@69
|
355 #define restore_cursor CUR Strings[126]
|
jpayne@69
|
356 #define row_address CUR Strings[127]
|
jpayne@69
|
357 #define save_cursor CUR Strings[128]
|
jpayne@69
|
358 #define scroll_forward CUR Strings[129]
|
jpayne@69
|
359 #define scroll_reverse CUR Strings[130]
|
jpayne@69
|
360 #define set_attributes CUR Strings[131]
|
jpayne@69
|
361 #define set_tab CUR Strings[132]
|
jpayne@69
|
362 #define set_window CUR Strings[133]
|
jpayne@69
|
363 #define tab CUR Strings[134]
|
jpayne@69
|
364 #define to_status_line CUR Strings[135]
|
jpayne@69
|
365 #define underline_char CUR Strings[136]
|
jpayne@69
|
366 #define up_half_line CUR Strings[137]
|
jpayne@69
|
367 #define init_prog CUR Strings[138]
|
jpayne@69
|
368 #define key_a1 CUR Strings[139]
|
jpayne@69
|
369 #define key_a3 CUR Strings[140]
|
jpayne@69
|
370 #define key_b2 CUR Strings[141]
|
jpayne@69
|
371 #define key_c1 CUR Strings[142]
|
jpayne@69
|
372 #define key_c3 CUR Strings[143]
|
jpayne@69
|
373 #define prtr_non CUR Strings[144]
|
jpayne@69
|
374 #define char_padding CUR Strings[145]
|
jpayne@69
|
375 #define acs_chars CUR Strings[146]
|
jpayne@69
|
376 #define plab_norm CUR Strings[147]
|
jpayne@69
|
377 #define key_btab CUR Strings[148]
|
jpayne@69
|
378 #define enter_xon_mode CUR Strings[149]
|
jpayne@69
|
379 #define exit_xon_mode CUR Strings[150]
|
jpayne@69
|
380 #define enter_am_mode CUR Strings[151]
|
jpayne@69
|
381 #define exit_am_mode CUR Strings[152]
|
jpayne@69
|
382 #define xon_character CUR Strings[153]
|
jpayne@69
|
383 #define xoff_character CUR Strings[154]
|
jpayne@69
|
384 #define ena_acs CUR Strings[155]
|
jpayne@69
|
385 #define label_on CUR Strings[156]
|
jpayne@69
|
386 #define label_off CUR Strings[157]
|
jpayne@69
|
387 #define key_beg CUR Strings[158]
|
jpayne@69
|
388 #define key_cancel CUR Strings[159]
|
jpayne@69
|
389 #define key_close CUR Strings[160]
|
jpayne@69
|
390 #define key_command CUR Strings[161]
|
jpayne@69
|
391 #define key_copy CUR Strings[162]
|
jpayne@69
|
392 #define key_create CUR Strings[163]
|
jpayne@69
|
393 #define key_end CUR Strings[164]
|
jpayne@69
|
394 #define key_enter CUR Strings[165]
|
jpayne@69
|
395 #define key_exit CUR Strings[166]
|
jpayne@69
|
396 #define key_find CUR Strings[167]
|
jpayne@69
|
397 #define key_help CUR Strings[168]
|
jpayne@69
|
398 #define key_mark CUR Strings[169]
|
jpayne@69
|
399 #define key_message CUR Strings[170]
|
jpayne@69
|
400 #define key_move CUR Strings[171]
|
jpayne@69
|
401 #define key_next CUR Strings[172]
|
jpayne@69
|
402 #define key_open CUR Strings[173]
|
jpayne@69
|
403 #define key_options CUR Strings[174]
|
jpayne@69
|
404 #define key_previous CUR Strings[175]
|
jpayne@69
|
405 #define key_print CUR Strings[176]
|
jpayne@69
|
406 #define key_redo CUR Strings[177]
|
jpayne@69
|
407 #define key_reference CUR Strings[178]
|
jpayne@69
|
408 #define key_refresh CUR Strings[179]
|
jpayne@69
|
409 #define key_replace CUR Strings[180]
|
jpayne@69
|
410 #define key_restart CUR Strings[181]
|
jpayne@69
|
411 #define key_resume CUR Strings[182]
|
jpayne@69
|
412 #define key_save CUR Strings[183]
|
jpayne@69
|
413 #define key_suspend CUR Strings[184]
|
jpayne@69
|
414 #define key_undo CUR Strings[185]
|
jpayne@69
|
415 #define key_sbeg CUR Strings[186]
|
jpayne@69
|
416 #define key_scancel CUR Strings[187]
|
jpayne@69
|
417 #define key_scommand CUR Strings[188]
|
jpayne@69
|
418 #define key_scopy CUR Strings[189]
|
jpayne@69
|
419 #define key_screate CUR Strings[190]
|
jpayne@69
|
420 #define key_sdc CUR Strings[191]
|
jpayne@69
|
421 #define key_sdl CUR Strings[192]
|
jpayne@69
|
422 #define key_select CUR Strings[193]
|
jpayne@69
|
423 #define key_send CUR Strings[194]
|
jpayne@69
|
424 #define key_seol CUR Strings[195]
|
jpayne@69
|
425 #define key_sexit CUR Strings[196]
|
jpayne@69
|
426 #define key_sfind CUR Strings[197]
|
jpayne@69
|
427 #define key_shelp CUR Strings[198]
|
jpayne@69
|
428 #define key_shome CUR Strings[199]
|
jpayne@69
|
429 #define key_sic CUR Strings[200]
|
jpayne@69
|
430 #define key_sleft CUR Strings[201]
|
jpayne@69
|
431 #define key_smessage CUR Strings[202]
|
jpayne@69
|
432 #define key_smove CUR Strings[203]
|
jpayne@69
|
433 #define key_snext CUR Strings[204]
|
jpayne@69
|
434 #define key_soptions CUR Strings[205]
|
jpayne@69
|
435 #define key_sprevious CUR Strings[206]
|
jpayne@69
|
436 #define key_sprint CUR Strings[207]
|
jpayne@69
|
437 #define key_sredo CUR Strings[208]
|
jpayne@69
|
438 #define key_sreplace CUR Strings[209]
|
jpayne@69
|
439 #define key_sright CUR Strings[210]
|
jpayne@69
|
440 #define key_srsume CUR Strings[211]
|
jpayne@69
|
441 #define key_ssave CUR Strings[212]
|
jpayne@69
|
442 #define key_ssuspend CUR Strings[213]
|
jpayne@69
|
443 #define key_sundo CUR Strings[214]
|
jpayne@69
|
444 #define req_for_input CUR Strings[215]
|
jpayne@69
|
445 #define key_f11 CUR Strings[216]
|
jpayne@69
|
446 #define key_f12 CUR Strings[217]
|
jpayne@69
|
447 #define key_f13 CUR Strings[218]
|
jpayne@69
|
448 #define key_f14 CUR Strings[219]
|
jpayne@69
|
449 #define key_f15 CUR Strings[220]
|
jpayne@69
|
450 #define key_f16 CUR Strings[221]
|
jpayne@69
|
451 #define key_f17 CUR Strings[222]
|
jpayne@69
|
452 #define key_f18 CUR Strings[223]
|
jpayne@69
|
453 #define key_f19 CUR Strings[224]
|
jpayne@69
|
454 #define key_f20 CUR Strings[225]
|
jpayne@69
|
455 #define key_f21 CUR Strings[226]
|
jpayne@69
|
456 #define key_f22 CUR Strings[227]
|
jpayne@69
|
457 #define key_f23 CUR Strings[228]
|
jpayne@69
|
458 #define key_f24 CUR Strings[229]
|
jpayne@69
|
459 #define key_f25 CUR Strings[230]
|
jpayne@69
|
460 #define key_f26 CUR Strings[231]
|
jpayne@69
|
461 #define key_f27 CUR Strings[232]
|
jpayne@69
|
462 #define key_f28 CUR Strings[233]
|
jpayne@69
|
463 #define key_f29 CUR Strings[234]
|
jpayne@69
|
464 #define key_f30 CUR Strings[235]
|
jpayne@69
|
465 #define key_f31 CUR Strings[236]
|
jpayne@69
|
466 #define key_f32 CUR Strings[237]
|
jpayne@69
|
467 #define key_f33 CUR Strings[238]
|
jpayne@69
|
468 #define key_f34 CUR Strings[239]
|
jpayne@69
|
469 #define key_f35 CUR Strings[240]
|
jpayne@69
|
470 #define key_f36 CUR Strings[241]
|
jpayne@69
|
471 #define key_f37 CUR Strings[242]
|
jpayne@69
|
472 #define key_f38 CUR Strings[243]
|
jpayne@69
|
473 #define key_f39 CUR Strings[244]
|
jpayne@69
|
474 #define key_f40 CUR Strings[245]
|
jpayne@69
|
475 #define key_f41 CUR Strings[246]
|
jpayne@69
|
476 #define key_f42 CUR Strings[247]
|
jpayne@69
|
477 #define key_f43 CUR Strings[248]
|
jpayne@69
|
478 #define key_f44 CUR Strings[249]
|
jpayne@69
|
479 #define key_f45 CUR Strings[250]
|
jpayne@69
|
480 #define key_f46 CUR Strings[251]
|
jpayne@69
|
481 #define key_f47 CUR Strings[252]
|
jpayne@69
|
482 #define key_f48 CUR Strings[253]
|
jpayne@69
|
483 #define key_f49 CUR Strings[254]
|
jpayne@69
|
484 #define key_f50 CUR Strings[255]
|
jpayne@69
|
485 #define key_f51 CUR Strings[256]
|
jpayne@69
|
486 #define key_f52 CUR Strings[257]
|
jpayne@69
|
487 #define key_f53 CUR Strings[258]
|
jpayne@69
|
488 #define key_f54 CUR Strings[259]
|
jpayne@69
|
489 #define key_f55 CUR Strings[260]
|
jpayne@69
|
490 #define key_f56 CUR Strings[261]
|
jpayne@69
|
491 #define key_f57 CUR Strings[262]
|
jpayne@69
|
492 #define key_f58 CUR Strings[263]
|
jpayne@69
|
493 #define key_f59 CUR Strings[264]
|
jpayne@69
|
494 #define key_f60 CUR Strings[265]
|
jpayne@69
|
495 #define key_f61 CUR Strings[266]
|
jpayne@69
|
496 #define key_f62 CUR Strings[267]
|
jpayne@69
|
497 #define key_f63 CUR Strings[268]
|
jpayne@69
|
498 #define clr_bol CUR Strings[269]
|
jpayne@69
|
499 #define clear_margins CUR Strings[270]
|
jpayne@69
|
500 #define set_left_margin CUR Strings[271]
|
jpayne@69
|
501 #define set_right_margin CUR Strings[272]
|
jpayne@69
|
502 #define label_format CUR Strings[273]
|
jpayne@69
|
503 #define set_clock CUR Strings[274]
|
jpayne@69
|
504 #define display_clock CUR Strings[275]
|
jpayne@69
|
505 #define remove_clock CUR Strings[276]
|
jpayne@69
|
506 #define create_window CUR Strings[277]
|
jpayne@69
|
507 #define goto_window CUR Strings[278]
|
jpayne@69
|
508 #define hangup CUR Strings[279]
|
jpayne@69
|
509 #define dial_phone CUR Strings[280]
|
jpayne@69
|
510 #define quick_dial CUR Strings[281]
|
jpayne@69
|
511 #define tone CUR Strings[282]
|
jpayne@69
|
512 #define pulse CUR Strings[283]
|
jpayne@69
|
513 #define flash_hook CUR Strings[284]
|
jpayne@69
|
514 #define fixed_pause CUR Strings[285]
|
jpayne@69
|
515 #define wait_tone CUR Strings[286]
|
jpayne@69
|
516 #define user0 CUR Strings[287]
|
jpayne@69
|
517 #define user1 CUR Strings[288]
|
jpayne@69
|
518 #define user2 CUR Strings[289]
|
jpayne@69
|
519 #define user3 CUR Strings[290]
|
jpayne@69
|
520 #define user4 CUR Strings[291]
|
jpayne@69
|
521 #define user5 CUR Strings[292]
|
jpayne@69
|
522 #define user6 CUR Strings[293]
|
jpayne@69
|
523 #define user7 CUR Strings[294]
|
jpayne@69
|
524 #define user8 CUR Strings[295]
|
jpayne@69
|
525 #define user9 CUR Strings[296]
|
jpayne@69
|
526 #define orig_pair CUR Strings[297]
|
jpayne@69
|
527 #define orig_colors CUR Strings[298]
|
jpayne@69
|
528 #define initialize_color CUR Strings[299]
|
jpayne@69
|
529 #define initialize_pair CUR Strings[300]
|
jpayne@69
|
530 #define set_color_pair CUR Strings[301]
|
jpayne@69
|
531 #define set_foreground CUR Strings[302]
|
jpayne@69
|
532 #define set_background CUR Strings[303]
|
jpayne@69
|
533 #define change_char_pitch CUR Strings[304]
|
jpayne@69
|
534 #define change_line_pitch CUR Strings[305]
|
jpayne@69
|
535 #define change_res_horz CUR Strings[306]
|
jpayne@69
|
536 #define change_res_vert CUR Strings[307]
|
jpayne@69
|
537 #define define_char CUR Strings[308]
|
jpayne@69
|
538 #define enter_doublewide_mode CUR Strings[309]
|
jpayne@69
|
539 #define enter_draft_quality CUR Strings[310]
|
jpayne@69
|
540 #define enter_italics_mode CUR Strings[311]
|
jpayne@69
|
541 #define enter_leftward_mode CUR Strings[312]
|
jpayne@69
|
542 #define enter_micro_mode CUR Strings[313]
|
jpayne@69
|
543 #define enter_near_letter_quality CUR Strings[314]
|
jpayne@69
|
544 #define enter_normal_quality CUR Strings[315]
|
jpayne@69
|
545 #define enter_shadow_mode CUR Strings[316]
|
jpayne@69
|
546 #define enter_subscript_mode CUR Strings[317]
|
jpayne@69
|
547 #define enter_superscript_mode CUR Strings[318]
|
jpayne@69
|
548 #define enter_upward_mode CUR Strings[319]
|
jpayne@69
|
549 #define exit_doublewide_mode CUR Strings[320]
|
jpayne@69
|
550 #define exit_italics_mode CUR Strings[321]
|
jpayne@69
|
551 #define exit_leftward_mode CUR Strings[322]
|
jpayne@69
|
552 #define exit_micro_mode CUR Strings[323]
|
jpayne@69
|
553 #define exit_shadow_mode CUR Strings[324]
|
jpayne@69
|
554 #define exit_subscript_mode CUR Strings[325]
|
jpayne@69
|
555 #define exit_superscript_mode CUR Strings[326]
|
jpayne@69
|
556 #define exit_upward_mode CUR Strings[327]
|
jpayne@69
|
557 #define micro_column_address CUR Strings[328]
|
jpayne@69
|
558 #define micro_down CUR Strings[329]
|
jpayne@69
|
559 #define micro_left CUR Strings[330]
|
jpayne@69
|
560 #define micro_right CUR Strings[331]
|
jpayne@69
|
561 #define micro_row_address CUR Strings[332]
|
jpayne@69
|
562 #define micro_up CUR Strings[333]
|
jpayne@69
|
563 #define order_of_pins CUR Strings[334]
|
jpayne@69
|
564 #define parm_down_micro CUR Strings[335]
|
jpayne@69
|
565 #define parm_left_micro CUR Strings[336]
|
jpayne@69
|
566 #define parm_right_micro CUR Strings[337]
|
jpayne@69
|
567 #define parm_up_micro CUR Strings[338]
|
jpayne@69
|
568 #define select_char_set CUR Strings[339]
|
jpayne@69
|
569 #define set_bottom_margin CUR Strings[340]
|
jpayne@69
|
570 #define set_bottom_margin_parm CUR Strings[341]
|
jpayne@69
|
571 #define set_left_margin_parm CUR Strings[342]
|
jpayne@69
|
572 #define set_right_margin_parm CUR Strings[343]
|
jpayne@69
|
573 #define set_top_margin CUR Strings[344]
|
jpayne@69
|
574 #define set_top_margin_parm CUR Strings[345]
|
jpayne@69
|
575 #define start_bit_image CUR Strings[346]
|
jpayne@69
|
576 #define start_char_set_def CUR Strings[347]
|
jpayne@69
|
577 #define stop_bit_image CUR Strings[348]
|
jpayne@69
|
578 #define stop_char_set_def CUR Strings[349]
|
jpayne@69
|
579 #define subscript_characters CUR Strings[350]
|
jpayne@69
|
580 #define superscript_characters CUR Strings[351]
|
jpayne@69
|
581 #define these_cause_cr CUR Strings[352]
|
jpayne@69
|
582 #define zero_motion CUR Strings[353]
|
jpayne@69
|
583 #define char_set_names CUR Strings[354]
|
jpayne@69
|
584 #define key_mouse CUR Strings[355]
|
jpayne@69
|
585 #define mouse_info CUR Strings[356]
|
jpayne@69
|
586 #define req_mouse_pos CUR Strings[357]
|
jpayne@69
|
587 #define get_mouse CUR Strings[358]
|
jpayne@69
|
588 #define set_a_foreground CUR Strings[359]
|
jpayne@69
|
589 #define set_a_background CUR Strings[360]
|
jpayne@69
|
590 #define pkey_plab CUR Strings[361]
|
jpayne@69
|
591 #define device_type CUR Strings[362]
|
jpayne@69
|
592 #define code_set_init CUR Strings[363]
|
jpayne@69
|
593 #define set0_des_seq CUR Strings[364]
|
jpayne@69
|
594 #define set1_des_seq CUR Strings[365]
|
jpayne@69
|
595 #define set2_des_seq CUR Strings[366]
|
jpayne@69
|
596 #define set3_des_seq CUR Strings[367]
|
jpayne@69
|
597 #define set_lr_margin CUR Strings[368]
|
jpayne@69
|
598 #define set_tb_margin CUR Strings[369]
|
jpayne@69
|
599 #define bit_image_repeat CUR Strings[370]
|
jpayne@69
|
600 #define bit_image_newline CUR Strings[371]
|
jpayne@69
|
601 #define bit_image_carriage_return CUR Strings[372]
|
jpayne@69
|
602 #define color_names CUR Strings[373]
|
jpayne@69
|
603 #define define_bit_image_region CUR Strings[374]
|
jpayne@69
|
604 #define end_bit_image_region CUR Strings[375]
|
jpayne@69
|
605 #define set_color_band CUR Strings[376]
|
jpayne@69
|
606 #define set_page_length CUR Strings[377]
|
jpayne@69
|
607 #define display_pc_char CUR Strings[378]
|
jpayne@69
|
608 #define enter_pc_charset_mode CUR Strings[379]
|
jpayne@69
|
609 #define exit_pc_charset_mode CUR Strings[380]
|
jpayne@69
|
610 #define enter_scancode_mode CUR Strings[381]
|
jpayne@69
|
611 #define exit_scancode_mode CUR Strings[382]
|
jpayne@69
|
612 #define pc_term_options CUR Strings[383]
|
jpayne@69
|
613 #define scancode_escape CUR Strings[384]
|
jpayne@69
|
614 #define alt_scancode_esc CUR Strings[385]
|
jpayne@69
|
615 #define enter_horizontal_hl_mode CUR Strings[386]
|
jpayne@69
|
616 #define enter_left_hl_mode CUR Strings[387]
|
jpayne@69
|
617 #define enter_low_hl_mode CUR Strings[388]
|
jpayne@69
|
618 #define enter_right_hl_mode CUR Strings[389]
|
jpayne@69
|
619 #define enter_top_hl_mode CUR Strings[390]
|
jpayne@69
|
620 #define enter_vertical_hl_mode CUR Strings[391]
|
jpayne@69
|
621 #define set_a_attributes CUR Strings[392]
|
jpayne@69
|
622 #define set_pglen_inch CUR Strings[393]
|
jpayne@69
|
623
|
jpayne@69
|
624 #define BOOLWRITE 37
|
jpayne@69
|
625 #define NUMWRITE 33
|
jpayne@69
|
626 #define STRWRITE 394
|
jpayne@69
|
627
|
jpayne@69
|
628 /* older synonyms for some capabilities */
|
jpayne@69
|
629 #define beehive_glitch no_esc_ctlc
|
jpayne@69
|
630 #define teleray_glitch dest_tabs_magic_smso
|
jpayne@69
|
631
|
jpayne@69
|
632 /* HPUX-11 uses this name rather than the standard one */
|
jpayne@69
|
633 #ifndef micro_char_size
|
jpayne@69
|
634 #define micro_char_size micro_col_size
|
jpayne@69
|
635 #endif
|
jpayne@69
|
636
|
jpayne@69
|
637 #ifdef __INTERNAL_CAPS_VISIBLE
|
jpayne@69
|
638 #define termcap_init2 CUR Strings[394]
|
jpayne@69
|
639 #define termcap_reset CUR Strings[395]
|
jpayne@69
|
640 #define magic_cookie_glitch_ul CUR Numbers[33]
|
jpayne@69
|
641 #define backspaces_with_bs CUR Booleans[37]
|
jpayne@69
|
642 #define crt_no_scrolling CUR Booleans[38]
|
jpayne@69
|
643 #define no_correctly_working_cr CUR Booleans[39]
|
jpayne@69
|
644 #define carriage_return_delay CUR Numbers[34]
|
jpayne@69
|
645 #define new_line_delay CUR Numbers[35]
|
jpayne@69
|
646 #define linefeed_if_not_lf CUR Strings[396]
|
jpayne@69
|
647 #define backspace_if_not_bs CUR Strings[397]
|
jpayne@69
|
648 #define gnu_has_meta_key CUR Booleans[40]
|
jpayne@69
|
649 #define linefeed_is_newline CUR Booleans[41]
|
jpayne@69
|
650 #define backspace_delay CUR Numbers[36]
|
jpayne@69
|
651 #define horizontal_tab_delay CUR Numbers[37]
|
jpayne@69
|
652 #define number_of_function_keys CUR Numbers[38]
|
jpayne@69
|
653 #define other_non_function_keys CUR Strings[398]
|
jpayne@69
|
654 #define arrow_key_map CUR Strings[399]
|
jpayne@69
|
655 #define has_hardware_tabs CUR Booleans[42]
|
jpayne@69
|
656 #define return_does_clr_eol CUR Booleans[43]
|
jpayne@69
|
657 #define acs_ulcorner CUR Strings[400]
|
jpayne@69
|
658 #define acs_llcorner CUR Strings[401]
|
jpayne@69
|
659 #define acs_urcorner CUR Strings[402]
|
jpayne@69
|
660 #define acs_lrcorner CUR Strings[403]
|
jpayne@69
|
661 #define acs_ltee CUR Strings[404]
|
jpayne@69
|
662 #define acs_rtee CUR Strings[405]
|
jpayne@69
|
663 #define acs_btee CUR Strings[406]
|
jpayne@69
|
664 #define acs_ttee CUR Strings[407]
|
jpayne@69
|
665 #define acs_hline CUR Strings[408]
|
jpayne@69
|
666 #define acs_vline CUR Strings[409]
|
jpayne@69
|
667 #define acs_plus CUR Strings[410]
|
jpayne@69
|
668 #define memory_lock CUR Strings[411]
|
jpayne@69
|
669 #define memory_unlock CUR Strings[412]
|
jpayne@69
|
670 #define box_chars_1 CUR Strings[413]
|
jpayne@69
|
671 #endif /* __INTERNAL_CAPS_VISIBLE */
|
jpayne@69
|
672
|
jpayne@69
|
673
|
jpayne@69
|
674 /*
|
jpayne@69
|
675 * Predefined terminfo array sizes
|
jpayne@69
|
676 */
|
jpayne@69
|
677 #define BOOLCOUNT 44
|
jpayne@69
|
678 #define NUMCOUNT 39
|
jpayne@69
|
679 #define STRCOUNT 414
|
jpayne@69
|
680
|
jpayne@69
|
681 /* used by code for comparing entries */
|
jpayne@69
|
682 #define acs_chars_index 146
|
jpayne@69
|
683
|
jpayne@69
|
684 typedef struct termtype { /* in-core form of terminfo data */
|
jpayne@69
|
685 char *term_names; /* str_table offset of term names */
|
jpayne@69
|
686 char *str_table; /* pointer to string table */
|
jpayne@69
|
687 NCURSES_SBOOL *Booleans; /* array of boolean values */
|
jpayne@69
|
688 short *Numbers; /* array of integer values */
|
jpayne@69
|
689 char **Strings; /* array of string offsets */
|
jpayne@69
|
690
|
jpayne@69
|
691 #if NCURSES_XNAMES
|
jpayne@69
|
692 char *ext_str_table; /* pointer to extended string table */
|
jpayne@69
|
693 char **ext_Names; /* corresponding names */
|
jpayne@69
|
694
|
jpayne@69
|
695 unsigned short num_Booleans;/* count total Booleans */
|
jpayne@69
|
696 unsigned short num_Numbers; /* count total Numbers */
|
jpayne@69
|
697 unsigned short num_Strings; /* count total Strings */
|
jpayne@69
|
698
|
jpayne@69
|
699 unsigned short ext_Booleans;/* count extensions to Booleans */
|
jpayne@69
|
700 unsigned short ext_Numbers; /* count extensions to Numbers */
|
jpayne@69
|
701 unsigned short ext_Strings; /* count extensions to Strings */
|
jpayne@69
|
702 #endif /* NCURSES_XNAMES */
|
jpayne@69
|
703
|
jpayne@69
|
704 } TERMTYPE;
|
jpayne@69
|
705
|
jpayne@69
|
706 /*
|
jpayne@69
|
707 * The only reason these structures are visible is for read-only use.
|
jpayne@69
|
708 * Programs which modify the data are not, never were, portable across
|
jpayne@69
|
709 * curses implementations.
|
jpayne@69
|
710 *
|
jpayne@69
|
711 * The first field in TERMINAL is used in macros.
|
jpayne@69
|
712 * The remaining fields are private.
|
jpayne@69
|
713 */
|
jpayne@69
|
714 #ifdef NCURSES_INTERNALS
|
jpayne@69
|
715
|
jpayne@69
|
716 #undef TERMINAL
|
jpayne@69
|
717 #define TERMINAL struct term
|
jpayne@69
|
718 TERMINAL;
|
jpayne@69
|
719
|
jpayne@69
|
720 typedef struct termtype2 { /* in-core form of terminfo data */
|
jpayne@69
|
721 char *term_names; /* str_table offset of term names */
|
jpayne@69
|
722 char *str_table; /* pointer to string table */
|
jpayne@69
|
723 NCURSES_SBOOL *Booleans; /* array of boolean values */
|
jpayne@69
|
724 int *Numbers; /* array of integer values */
|
jpayne@69
|
725 char **Strings; /* array of string offsets */
|
jpayne@69
|
726
|
jpayne@69
|
727 #if NCURSES_XNAMES
|
jpayne@69
|
728 char *ext_str_table; /* pointer to extended string table */
|
jpayne@69
|
729 char **ext_Names; /* corresponding names */
|
jpayne@69
|
730
|
jpayne@69
|
731 unsigned short num_Booleans;/* count total Booleans */
|
jpayne@69
|
732 unsigned short num_Numbers; /* count total Numbers */
|
jpayne@69
|
733 unsigned short num_Strings; /* count total Strings */
|
jpayne@69
|
734
|
jpayne@69
|
735 unsigned short ext_Booleans;/* count extensions to Booleans */
|
jpayne@69
|
736 unsigned short ext_Numbers; /* count extensions to Numbers */
|
jpayne@69
|
737 unsigned short ext_Strings; /* count extensions to Strings */
|
jpayne@69
|
738 #endif /* NCURSES_XNAMES */
|
jpayne@69
|
739
|
jpayne@69
|
740 } TERMTYPE2;
|
jpayne@69
|
741 #else
|
jpayne@69
|
742
|
jpayne@69
|
743 typedef struct term { /* describe an actual terminal */
|
jpayne@69
|
744 TERMTYPE type; /* terminal type description */
|
jpayne@69
|
745 } TERMINAL;
|
jpayne@69
|
746
|
jpayne@69
|
747 #endif /* NCURSES_INTERNALS */
|
jpayne@69
|
748
|
jpayne@69
|
749
|
jpayne@69
|
750 #if 0 && !0
|
jpayne@69
|
751 extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;
|
jpayne@69
|
752 #elif 0
|
jpayne@69
|
753 NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);
|
jpayne@69
|
754 #define cur_term NCURSES_PUBLIC_VAR(cur_term())
|
jpayne@69
|
755 #else
|
jpayne@69
|
756 extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;
|
jpayne@69
|
757 #endif
|
jpayne@69
|
758
|
jpayne@69
|
759 #if 0 || 0
|
jpayne@69
|
760 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames);
|
jpayne@69
|
761 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes);
|
jpayne@69
|
762 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolfnames);
|
jpayne@69
|
763 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numnames);
|
jpayne@69
|
764 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numcodes);
|
jpayne@69
|
765 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numfnames);
|
jpayne@69
|
766 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strnames);
|
jpayne@69
|
767 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strcodes);
|
jpayne@69
|
768 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames);
|
jpayne@69
|
769
|
jpayne@69
|
770 #define boolnames NCURSES_PUBLIC_VAR(boolnames())
|
jpayne@69
|
771 #define boolcodes NCURSES_PUBLIC_VAR(boolcodes())
|
jpayne@69
|
772 #define boolfnames NCURSES_PUBLIC_VAR(boolfnames())
|
jpayne@69
|
773 #define numnames NCURSES_PUBLIC_VAR(numnames())
|
jpayne@69
|
774 #define numcodes NCURSES_PUBLIC_VAR(numcodes())
|
jpayne@69
|
775 #define numfnames NCURSES_PUBLIC_VAR(numfnames())
|
jpayne@69
|
776 #define strnames NCURSES_PUBLIC_VAR(strnames())
|
jpayne@69
|
777 #define strcodes NCURSES_PUBLIC_VAR(strcodes())
|
jpayne@69
|
778 #define strfnames NCURSES_PUBLIC_VAR(strfnames())
|
jpayne@69
|
779
|
jpayne@69
|
780 #else
|
jpayne@69
|
781
|
jpayne@69
|
782 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];
|
jpayne@69
|
783 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];
|
jpayne@69
|
784 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];
|
jpayne@69
|
785 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[];
|
jpayne@69
|
786 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[];
|
jpayne@69
|
787 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[];
|
jpayne@69
|
788 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[];
|
jpayne@69
|
789 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[];
|
jpayne@69
|
790 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[];
|
jpayne@69
|
791
|
jpayne@69
|
792 #endif
|
jpayne@69
|
793
|
jpayne@69
|
794 /*
|
jpayne@69
|
795 * These entrypoints are used only by the ncurses utilities such as tic.
|
jpayne@69
|
796 */
|
jpayne@69
|
797 #ifdef NCURSES_INTERNALS
|
jpayne@69
|
798
|
jpayne@69
|
799 extern NCURSES_EXPORT(int) _nc_set_tty_mode (TTY *buf);
|
jpayne@69
|
800 extern NCURSES_EXPORT(int) _nc_read_entry2 (const char * const, char * const, TERMTYPE2 *const);
|
jpayne@69
|
801 extern NCURSES_EXPORT(int) _nc_read_file_entry (const char *const, TERMTYPE2 *);
|
jpayne@69
|
802 extern NCURSES_EXPORT(int) _nc_read_termtype (TERMTYPE2 *, char *, int);
|
jpayne@69
|
803 extern NCURSES_EXPORT(char *) _nc_first_name (const char *const);
|
jpayne@69
|
804 extern NCURSES_EXPORT(int) _nc_name_match (const char *const, const char *const, const char *const);
|
jpayne@69
|
805 extern NCURSES_EXPORT(char *) _nc_tiparm(int, const char *, ...);
|
jpayne@69
|
806 extern NCURSES_EXPORT(const TERMTYPE *) _nc_fallback (const char *);
|
jpayne@69
|
807 extern NCURSES_EXPORT(int) _nc_read_entry (const char * const, char * const, TERMTYPE *const);
|
jpayne@69
|
808
|
jpayne@69
|
809 #endif /* NCURSES_INTERNALS */
|
jpayne@69
|
810
|
jpayne@69
|
811 /*
|
jpayne@69
|
812 * Normal entry points
|
jpayne@69
|
813 */
|
jpayne@69
|
814 extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *);
|
jpayne@69
|
815 extern NCURSES_EXPORT(int) del_curterm (TERMINAL *);
|
jpayne@69
|
816
|
jpayne@69
|
817 /* miscellaneous entry points */
|
jpayne@69
|
818 extern NCURSES_EXPORT(int) restartterm (NCURSES_CONST char *, int, int *);
|
jpayne@69
|
819 extern NCURSES_EXPORT(int) setupterm (const char *,int,int *);
|
jpayne@69
|
820
|
jpayne@69
|
821 /* terminfo entry points, also declared in curses.h */
|
jpayne@69
|
822 #if !defined(__NCURSES_H)
|
jpayne@69
|
823 extern NCURSES_EXPORT(char *) tigetstr (const char *);
|
jpayne@69
|
824 extern NCURSES_EXPORT_VAR(char) ttytype[];
|
jpayne@69
|
825 extern NCURSES_EXPORT(int) putp (const char *);
|
jpayne@69
|
826 extern NCURSES_EXPORT(int) tigetflag (const char *);
|
jpayne@69
|
827 extern NCURSES_EXPORT(int) tigetnum (const char *);
|
jpayne@69
|
828
|
jpayne@69
|
829 #if 1 /* NCURSES_TPARM_VARARGS */
|
jpayne@69
|
830 extern NCURSES_EXPORT(char *) tparm (const char *, ...); /* special */
|
jpayne@69
|
831 #else
|
jpayne@69
|
832 extern NCURSES_EXPORT(char *) tparm (const char *, long,long,long,long,long,long,long,long,long); /* special */
|
jpayne@69
|
833 #endif
|
jpayne@69
|
834
|
jpayne@69
|
835 extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */
|
jpayne@69
|
836 extern NCURSES_EXPORT(char *) tiparm_s (int, int, const char *, ...); /* special */
|
jpayne@69
|
837 extern NCURSES_EXPORT(int) tiscan_s (int *, int *, const char *); /* special */
|
jpayne@69
|
838
|
jpayne@69
|
839 #endif /* __NCURSES_H */
|
jpayne@69
|
840
|
jpayne@69
|
841 /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */
|
jpayne@69
|
842 #if !defined(NCURSES_TERMCAP_H_incl)
|
jpayne@69
|
843 extern NCURSES_EXPORT(char *) tgetstr (const char *, char **);
|
jpayne@69
|
844 extern NCURSES_EXPORT(char *) tgoto (const char *, int, int);
|
jpayne@69
|
845 extern NCURSES_EXPORT(int) tgetent (char *, const char *);
|
jpayne@69
|
846 extern NCURSES_EXPORT(int) tgetflag (const char *);
|
jpayne@69
|
847 extern NCURSES_EXPORT(int) tgetnum (const char *);
|
jpayne@69
|
848 extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));
|
jpayne@69
|
849 #endif /* NCURSES_TERMCAP_H_incl */
|
jpayne@69
|
850
|
jpayne@69
|
851 /*
|
jpayne@69
|
852 * Include curses.h before term.h to enable these extensions.
|
jpayne@69
|
853 */
|
jpayne@69
|
854 #if defined(NCURSES_SP_FUNCS) && (NCURSES_SP_FUNCS != 0)
|
jpayne@69
|
855
|
jpayne@69
|
856 extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tigetstr) (SCREEN*, const char *);
|
jpayne@69
|
857 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(putp) (SCREEN*, const char *);
|
jpayne@69
|
858 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tigetflag) (SCREEN*, const char *);
|
jpayne@69
|
859 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tigetnum) (SCREEN*, const char *);
|
jpayne@69
|
860
|
jpayne@69
|
861 #if 1 /* NCURSES_TPARM_VARARGS */
|
jpayne@69
|
862 extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tparm) (SCREEN*, const char *, ...); /* special */
|
jpayne@69
|
863 #else
|
jpayne@69
|
864 extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tparm) (SCREEN*, const char *, long,long,long,long,long,long,long,long,long); /* special */
|
jpayne@69
|
865 #endif
|
jpayne@69
|
866
|
jpayne@69
|
867 /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */
|
jpayne@69
|
868 extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tgetstr) (SCREEN*, const char *, char **);
|
jpayne@69
|
869 extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tgoto) (SCREEN*, const char *, int, int);
|
jpayne@69
|
870 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetent) (SCREEN*, char *, const char *);
|
jpayne@69
|
871 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetflag) (SCREEN*, const char *);
|
jpayne@69
|
872 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetnum) (SCREEN*, const char *);
|
jpayne@69
|
873 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tputs) (SCREEN*, const char *, int, NCURSES_SP_OUTC);
|
jpayne@69
|
874
|
jpayne@69
|
875 extern NCURSES_EXPORT(TERMINAL *) NCURSES_SP_NAME(set_curterm) (SCREEN*, TERMINAL *);
|
jpayne@69
|
876 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(del_curterm) (SCREEN*, TERMINAL *);
|
jpayne@69
|
877
|
jpayne@69
|
878 extern NCURSES_EXPORT(int) NCURSES_SP_NAME(restartterm) (SCREEN*, NCURSES_CONST char *, int, int *);
|
jpayne@69
|
879 #endif /* NCURSES_SP_FUNCS */
|
jpayne@69
|
880
|
jpayne@69
|
881 /*
|
jpayne@69
|
882 * Debugging features.
|
jpayne@69
|
883 */
|
jpayne@69
|
884 extern GCC_NORETURN NCURSES_EXPORT(void) exit_terminfo(int);
|
jpayne@69
|
885
|
jpayne@69
|
886 #ifdef __cplusplus
|
jpayne@69
|
887 }
|
jpayne@69
|
888 #endif
|
jpayne@69
|
889
|
jpayne@69
|
890 #endif /* NCURSES_TERM_H_incl */
|