Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 08:30:23

0001 /****************************************************************************
0002  * Copyright 2018-2020,2021 Thomas E. Dickey                                *
0003  * Copyright 1998-2013,2017 Free Software Foundation, Inc.                  *
0004  *                                                                          *
0005  * Permission is hereby granted, free of charge, to any person obtaining a  *
0006  * copy of this software and associated documentation files (the            *
0007  * "Software"), to deal in the Software without restriction, including      *
0008  * without limitation the rights to use, copy, modify, merge, publish,      *
0009  * distribute, distribute with modifications, sublicense, and/or sell       *
0010  * copies of the Software, and to permit persons to whom the Software is    *
0011  * furnished to do so, subject to the following conditions:                 *
0012  *                                                                          *
0013  * The above copyright notice and this permission notice shall be included  *
0014  * in all copies or substantial portions of the Software.                   *
0015  *                                                                          *
0016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
0017  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
0018  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
0019  * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
0020  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
0021  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
0022  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
0023  *                                                                          *
0024  * Except as contained in this notice, the name(s) of the above copyright   *
0025  * holders shall not be used in advertising or otherwise to promote the     *
0026  * sale, use or other dealings in this Software without prior written       *
0027  * authorization.                                                           *
0028  ****************************************************************************/
0029 
0030 /****************************************************************************/
0031 /* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995                */
0032 /*    and: Eric S. Raymond <esr@snark.thyrsus.com>                          */
0033 /*    and: Thomas E. Dickey                        1995-on                  */
0034 /****************************************************************************/
0035 
0036 /* $Id: MKterm.h.awk.in,v 1.82 2021/09/24 17:02:46 tom Exp $ */
0037 
0038 /*
0039 **  term.h -- Definition of struct term
0040 */
0041 
0042 #ifndef NCURSES_TERM_H_incl
0043 #define NCURSES_TERM_H_incl 1
0044 
0045 #undef  NCURSES_VERSION
0046 #define NCURSES_VERSION "6.4"
0047 
0048 #include <ncursesw/ncurses_dll.h>
0049 
0050 #ifdef __cplusplus
0051 extern "C" {
0052 #endif
0053 
0054 /* Make this file self-contained by providing defaults for the HAVE_TERMIO[S]_H
0055  * definition (based on the system for which this was configured).
0056  */
0057 
0058 #ifndef __NCURSES_H
0059 
0060 typedef struct screen  SCREEN;
0061 
0062 #if 1
0063 #undef  NCURSES_SP_FUNCS
0064 #define NCURSES_SP_FUNCS 20221231
0065 #undef  NCURSES_SP_NAME
0066 #define NCURSES_SP_NAME(name) name##_sp
0067 
0068 /* Define the sp-funcs helper function */
0069 #undef  NCURSES_SP_OUTC
0070 #define NCURSES_SP_OUTC NCURSES_SP_NAME(NCURSES_OUTC)
0071 typedef int (*NCURSES_SP_OUTC)(SCREEN*, int);
0072 #endif
0073 
0074 #endif /* __NCURSES_H */
0075 
0076 #undef  NCURSES_CONST
0077 #define NCURSES_CONST const
0078 
0079 #undef  NCURSES_SBOOL
0080 #define NCURSES_SBOOL char
0081 
0082 #undef  NCURSES_USE_DATABASE
0083 #define NCURSES_USE_DATABASE 1
0084 
0085 #undef  NCURSES_USE_TERMCAP
0086 #define NCURSES_USE_TERMCAP 1
0087 
0088 #undef  NCURSES_XNAMES
0089 #define NCURSES_XNAMES 1
0090 
0091 /* We will use these symbols to hide differences between
0092  * termios/termio/sgttyb interfaces.
0093  */
0094 #undef  TTY
0095 #undef  SET_TTY
0096 #undef  GET_TTY
0097 
0098 /* Assume POSIX termio if we have the header and function */
0099 /* #if HAVE_TERMIOS_H && HAVE_TCGETATTR */
0100 #if 1 && 1
0101 
0102 #undef  TERMIOS
0103 #define TERMIOS 1
0104 
0105 #include <termios.h>
0106 #define TTY struct termios
0107 
0108 #else /* !HAVE_TERMIOS_H */
0109 
0110 /* #if HAVE_TERMIO_H */
0111 #if 1
0112 
0113 #undef  TERMIOS
0114 #define TERMIOS 1
0115 
0116 #include <termio.h>
0117 #define TTY struct termio
0118 
0119 #else /* !HAVE_TERMIO_H */
0120 
0121 #if (defined(_WIN32) || defined(_WIN64))
0122 #if 0
0123 #include <ncursesw/win32_curses.h>
0124 #define TTY struct winconmode
0125 #else
0126 #include <ncursesw/ncurses_mingw.h>
0127 #define TTY struct termios
0128 #endif
0129 #else
0130 #undef TERMIOS
0131 #include <sgtty.h>
0132 #include <sys/ioctl.h>
0133 #define TTY struct sgttyb
0134 #endif /* MINGW32 */
0135 #endif /* HAVE_TERMIO_H */
0136 
0137 #endif /* HAVE_TERMIOS_H */
0138 
0139 #ifdef TERMIOS
0140 #define GET_TTY(fd, buf) tcgetattr(fd, buf)
0141 #define SET_TTY(fd, buf) tcsetattr(fd, TCSADRAIN, buf)
0142 #elif 0 && (defined(_WIN32) || defined(_WIN64))
0143 #define GET_TTY(fd, buf) _nc_console_getmode(_nc_console_fd2handle(fd),buf)
0144 #define SET_TTY(fd, buf) _nc_console_setmode(_nc_console_fd2handle(fd),buf)
0145 #else
0146 #define GET_TTY(fd, buf) gtty(fd, buf)
0147 #define SET_TTY(fd, buf) stty(fd, buf)
0148 #endif
0149 
0150 #ifndef GCC_NORETURN
0151 #define GCC_NORETURN /* nothing */
0152 #endif
0153 
0154 #define NAMESIZE 256
0155 
0156 /* The cast works because TERMTYPE is the first data in TERMINAL */
0157 #define CUR ((TERMTYPE *)(cur_term))->
0158 
0159 #define auto_left_margin               CUR Booleans[0]
0160 #define auto_right_margin              CUR Booleans[1]
0161 #define no_esc_ctlc                    CUR Booleans[2]
0162 #define ceol_standout_glitch           CUR Booleans[3]
0163 #define eat_newline_glitch             CUR Booleans[4]
0164 #define erase_overstrike               CUR Booleans[5]
0165 #define generic_type                   CUR Booleans[6]
0166 #define hard_copy                      CUR Booleans[7]
0167 #define has_meta_key                   CUR Booleans[8]
0168 #define has_status_line                CUR Booleans[9]
0169 #define insert_null_glitch             CUR Booleans[10]
0170 #define memory_above                   CUR Booleans[11]
0171 #define memory_below                   CUR Booleans[12]
0172 #define move_insert_mode               CUR Booleans[13]
0173 #define move_standout_mode             CUR Booleans[14]
0174 #define over_strike                    CUR Booleans[15]
0175 #define status_line_esc_ok             CUR Booleans[16]
0176 #define dest_tabs_magic_smso           CUR Booleans[17]
0177 #define tilde_glitch                   CUR Booleans[18]
0178 #define transparent_underline          CUR Booleans[19]
0179 #define xon_xoff                       CUR Booleans[20]
0180 #define needs_xon_xoff                 CUR Booleans[21]
0181 #define prtr_silent                    CUR Booleans[22]
0182 #define hard_cursor                    CUR Booleans[23]
0183 #define non_rev_rmcup                  CUR Booleans[24]
0184 #define no_pad_char                    CUR Booleans[25]
0185 #define non_dest_scroll_region         CUR Booleans[26]
0186 #define can_change                     CUR Booleans[27]
0187 #define back_color_erase               CUR Booleans[28]
0188 #define hue_lightness_saturation       CUR Booleans[29]
0189 #define col_addr_glitch                CUR Booleans[30]
0190 #define cr_cancels_micro_mode          CUR Booleans[31]
0191 #define has_print_wheel                CUR Booleans[32]
0192 #define row_addr_glitch                CUR Booleans[33]
0193 #define semi_auto_right_margin         CUR Booleans[34]
0194 #define cpi_changes_res                CUR Booleans[35]
0195 #define lpi_changes_res                CUR Booleans[36]
0196 #define columns                        CUR Numbers[0]
0197 #define init_tabs                      CUR Numbers[1]
0198 #define lines                          CUR Numbers[2]
0199 #define lines_of_memory                CUR Numbers[3]
0200 #define magic_cookie_glitch            CUR Numbers[4]
0201 #define padding_baud_rate              CUR Numbers[5]
0202 #define virtual_terminal               CUR Numbers[6]
0203 #define width_status_line              CUR Numbers[7]
0204 #define num_labels                     CUR Numbers[8]
0205 #define label_height                   CUR Numbers[9]
0206 #define label_width                    CUR Numbers[10]
0207 #define max_attributes                 CUR Numbers[11]
0208 #define maximum_windows                CUR Numbers[12]
0209 #define max_colors                     CUR Numbers[13]
0210 #define max_pairs                      CUR Numbers[14]
0211 #define no_color_video                 CUR Numbers[15]
0212 #define buffer_capacity                CUR Numbers[16]
0213 #define dot_vert_spacing               CUR Numbers[17]
0214 #define dot_horz_spacing               CUR Numbers[18]
0215 #define max_micro_address              CUR Numbers[19]
0216 #define max_micro_jump                 CUR Numbers[20]
0217 #define micro_col_size                 CUR Numbers[21]
0218 #define micro_line_size                CUR Numbers[22]
0219 #define number_of_pins                 CUR Numbers[23]
0220 #define output_res_char                CUR Numbers[24]
0221 #define output_res_line                CUR Numbers[25]
0222 #define output_res_horz_inch           CUR Numbers[26]
0223 #define output_res_vert_inch           CUR Numbers[27]
0224 #define print_rate                     CUR Numbers[28]
0225 #define wide_char_size                 CUR Numbers[29]
0226 #define buttons                        CUR Numbers[30]
0227 #define bit_image_entwining            CUR Numbers[31]
0228 #define bit_image_type                 CUR Numbers[32]
0229 #define back_tab                       CUR Strings[0]
0230 #define bell                           CUR Strings[1]
0231 #define carriage_return                CUR Strings[2]
0232 #define change_scroll_region           CUR Strings[3]
0233 #define clear_all_tabs                 CUR Strings[4]
0234 #define clear_screen                   CUR Strings[5]
0235 #define clr_eol                        CUR Strings[6]
0236 #define clr_eos                        CUR Strings[7]
0237 #define column_address                 CUR Strings[8]
0238 #define command_character              CUR Strings[9]
0239 #define cursor_address                 CUR Strings[10]
0240 #define cursor_down                    CUR Strings[11]
0241 #define cursor_home                    CUR Strings[12]
0242 #define cursor_invisible               CUR Strings[13]
0243 #define cursor_left                    CUR Strings[14]
0244 #define cursor_mem_address             CUR Strings[15]
0245 #define cursor_normal                  CUR Strings[16]
0246 #define cursor_right                   CUR Strings[17]
0247 #define cursor_to_ll                   CUR Strings[18]
0248 #define cursor_up                      CUR Strings[19]
0249 #define cursor_visible                 CUR Strings[20]
0250 #define delete_character               CUR Strings[21]
0251 #define delete_line                    CUR Strings[22]
0252 #define dis_status_line                CUR Strings[23]
0253 #define down_half_line                 CUR Strings[24]
0254 #define enter_alt_charset_mode         CUR Strings[25]
0255 #define enter_blink_mode               CUR Strings[26]
0256 #define enter_bold_mode                CUR Strings[27]
0257 #define enter_ca_mode                  CUR Strings[28]
0258 #define enter_delete_mode              CUR Strings[29]
0259 #define enter_dim_mode                 CUR Strings[30]
0260 #define enter_insert_mode              CUR Strings[31]
0261 #define enter_secure_mode              CUR Strings[32]
0262 #define enter_protected_mode           CUR Strings[33]
0263 #define enter_reverse_mode             CUR Strings[34]
0264 #define enter_standout_mode            CUR Strings[35]
0265 #define enter_underline_mode           CUR Strings[36]
0266 #define erase_chars                    CUR Strings[37]
0267 #define exit_alt_charset_mode          CUR Strings[38]
0268 #define exit_attribute_mode            CUR Strings[39]
0269 #define exit_ca_mode                   CUR Strings[40]
0270 #define exit_delete_mode               CUR Strings[41]
0271 #define exit_insert_mode               CUR Strings[42]
0272 #define exit_standout_mode             CUR Strings[43]
0273 #define exit_underline_mode            CUR Strings[44]
0274 #define flash_screen                   CUR Strings[45]
0275 #define form_feed                      CUR Strings[46]
0276 #define from_status_line               CUR Strings[47]
0277 #define init_1string                   CUR Strings[48]
0278 #define init_2string                   CUR Strings[49]
0279 #define init_3string                   CUR Strings[50]
0280 #define init_file                      CUR Strings[51]
0281 #define insert_character               CUR Strings[52]
0282 #define insert_line                    CUR Strings[53]
0283 #define insert_padding                 CUR Strings[54]
0284 #define key_backspace                  CUR Strings[55]
0285 #define key_catab                      CUR Strings[56]
0286 #define key_clear                      CUR Strings[57]
0287 #define key_ctab                       CUR Strings[58]
0288 #define key_dc                         CUR Strings[59]
0289 #define key_dl                         CUR Strings[60]
0290 #define key_down                       CUR Strings[61]
0291 #define key_eic                        CUR Strings[62]
0292 #define key_eol                        CUR Strings[63]
0293 #define key_eos                        CUR Strings[64]
0294 #define key_f0                         CUR Strings[65]
0295 #define key_f1                         CUR Strings[66]
0296 #define key_f10                        CUR Strings[67]
0297 #define key_f2                         CUR Strings[68]
0298 #define key_f3                         CUR Strings[69]
0299 #define key_f4                         CUR Strings[70]
0300 #define key_f5                         CUR Strings[71]
0301 #define key_f6                         CUR Strings[72]
0302 #define key_f7                         CUR Strings[73]
0303 #define key_f8                         CUR Strings[74]
0304 #define key_f9                         CUR Strings[75]
0305 #define key_home                       CUR Strings[76]
0306 #define key_ic                         CUR Strings[77]
0307 #define key_il                         CUR Strings[78]
0308 #define key_left                       CUR Strings[79]
0309 #define key_ll                         CUR Strings[80]
0310 #define key_npage                      CUR Strings[81]
0311 #define key_ppage                      CUR Strings[82]
0312 #define key_right                      CUR Strings[83]
0313 #define key_sf                         CUR Strings[84]
0314 #define key_sr                         CUR Strings[85]
0315 #define key_stab                       CUR Strings[86]
0316 #define key_up                         CUR Strings[87]
0317 #define keypad_local                   CUR Strings[88]
0318 #define keypad_xmit                    CUR Strings[89]
0319 #define lab_f0                         CUR Strings[90]
0320 #define lab_f1                         CUR Strings[91]
0321 #define lab_f10                        CUR Strings[92]
0322 #define lab_f2                         CUR Strings[93]
0323 #define lab_f3                         CUR Strings[94]
0324 #define lab_f4                         CUR Strings[95]
0325 #define lab_f5                         CUR Strings[96]
0326 #define lab_f6                         CUR Strings[97]
0327 #define lab_f7                         CUR Strings[98]
0328 #define lab_f8                         CUR Strings[99]
0329 #define lab_f9                         CUR Strings[100]
0330 #define meta_off                       CUR Strings[101]
0331 #define meta_on                        CUR Strings[102]
0332 #define newline                        CUR Strings[103]
0333 #define pad_char                       CUR Strings[104]
0334 #define parm_dch                       CUR Strings[105]
0335 #define parm_delete_line               CUR Strings[106]
0336 #define parm_down_cursor               CUR Strings[107]
0337 #define parm_ich                       CUR Strings[108]
0338 #define parm_index                     CUR Strings[109]
0339 #define parm_insert_line               CUR Strings[110]
0340 #define parm_left_cursor               CUR Strings[111]
0341 #define parm_right_cursor              CUR Strings[112]
0342 #define parm_rindex                    CUR Strings[113]
0343 #define parm_up_cursor                 CUR Strings[114]
0344 #define pkey_key                       CUR Strings[115]
0345 #define pkey_local                     CUR Strings[116]
0346 #define pkey_xmit                      CUR Strings[117]
0347 #define print_screen                   CUR Strings[118]
0348 #define prtr_off                       CUR Strings[119]
0349 #define prtr_on                        CUR Strings[120]
0350 #define repeat_char                    CUR Strings[121]
0351 #define reset_1string                  CUR Strings[122]
0352 #define reset_2string                  CUR Strings[123]
0353 #define reset_3string                  CUR Strings[124]
0354 #define reset_file                     CUR Strings[125]
0355 #define restore_cursor                 CUR Strings[126]
0356 #define row_address                    CUR Strings[127]
0357 #define save_cursor                    CUR Strings[128]
0358 #define scroll_forward                 CUR Strings[129]
0359 #define scroll_reverse                 CUR Strings[130]
0360 #define set_attributes                 CUR Strings[131]
0361 #define set_tab                        CUR Strings[132]
0362 #define set_window                     CUR Strings[133]
0363 #define tab                            CUR Strings[134]
0364 #define to_status_line                 CUR Strings[135]
0365 #define underline_char                 CUR Strings[136]
0366 #define up_half_line                   CUR Strings[137]
0367 #define init_prog                      CUR Strings[138]
0368 #define key_a1                         CUR Strings[139]
0369 #define key_a3                         CUR Strings[140]
0370 #define key_b2                         CUR Strings[141]
0371 #define key_c1                         CUR Strings[142]
0372 #define key_c3                         CUR Strings[143]
0373 #define prtr_non                       CUR Strings[144]
0374 #define char_padding                   CUR Strings[145]
0375 #define acs_chars                      CUR Strings[146]
0376 #define plab_norm                      CUR Strings[147]
0377 #define key_btab                       CUR Strings[148]
0378 #define enter_xon_mode                 CUR Strings[149]
0379 #define exit_xon_mode                  CUR Strings[150]
0380 #define enter_am_mode                  CUR Strings[151]
0381 #define exit_am_mode                   CUR Strings[152]
0382 #define xon_character                  CUR Strings[153]
0383 #define xoff_character                 CUR Strings[154]
0384 #define ena_acs                        CUR Strings[155]
0385 #define label_on                       CUR Strings[156]
0386 #define label_off                      CUR Strings[157]
0387 #define key_beg                        CUR Strings[158]
0388 #define key_cancel                     CUR Strings[159]
0389 #define key_close                      CUR Strings[160]
0390 #define key_command                    CUR Strings[161]
0391 #define key_copy                       CUR Strings[162]
0392 #define key_create                     CUR Strings[163]
0393 #define key_end                        CUR Strings[164]
0394 #define key_enter                      CUR Strings[165]
0395 #define key_exit                       CUR Strings[166]
0396 #define key_find                       CUR Strings[167]
0397 #define key_help                       CUR Strings[168]
0398 #define key_mark                       CUR Strings[169]
0399 #define key_message                    CUR Strings[170]
0400 #define key_move                       CUR Strings[171]
0401 #define key_next                       CUR Strings[172]
0402 #define key_open                       CUR Strings[173]
0403 #define key_options                    CUR Strings[174]
0404 #define key_previous                   CUR Strings[175]
0405 #define key_print                      CUR Strings[176]
0406 #define key_redo                       CUR Strings[177]
0407 #define key_reference                  CUR Strings[178]
0408 #define key_refresh                    CUR Strings[179]
0409 #define key_replace                    CUR Strings[180]
0410 #define key_restart                    CUR Strings[181]
0411 #define key_resume                     CUR Strings[182]
0412 #define key_save                       CUR Strings[183]
0413 #define key_suspend                    CUR Strings[184]
0414 #define key_undo                       CUR Strings[185]
0415 #define key_sbeg                       CUR Strings[186]
0416 #define key_scancel                    CUR Strings[187]
0417 #define key_scommand                   CUR Strings[188]
0418 #define key_scopy                      CUR Strings[189]
0419 #define key_screate                    CUR Strings[190]
0420 #define key_sdc                        CUR Strings[191]
0421 #define key_sdl                        CUR Strings[192]
0422 #define key_select                     CUR Strings[193]
0423 #define key_send                       CUR Strings[194]
0424 #define key_seol                       CUR Strings[195]
0425 #define key_sexit                      CUR Strings[196]
0426 #define key_sfind                      CUR Strings[197]
0427 #define key_shelp                      CUR Strings[198]
0428 #define key_shome                      CUR Strings[199]
0429 #define key_sic                        CUR Strings[200]
0430 #define key_sleft                      CUR Strings[201]
0431 #define key_smessage                   CUR Strings[202]
0432 #define key_smove                      CUR Strings[203]
0433 #define key_snext                      CUR Strings[204]
0434 #define key_soptions                   CUR Strings[205]
0435 #define key_sprevious                  CUR Strings[206]
0436 #define key_sprint                     CUR Strings[207]
0437 #define key_sredo                      CUR Strings[208]
0438 #define key_sreplace                   CUR Strings[209]
0439 #define key_sright                     CUR Strings[210]
0440 #define key_srsume                     CUR Strings[211]
0441 #define key_ssave                      CUR Strings[212]
0442 #define key_ssuspend                   CUR Strings[213]
0443 #define key_sundo                      CUR Strings[214]
0444 #define req_for_input                  CUR Strings[215]
0445 #define key_f11                        CUR Strings[216]
0446 #define key_f12                        CUR Strings[217]
0447 #define key_f13                        CUR Strings[218]
0448 #define key_f14                        CUR Strings[219]
0449 #define key_f15                        CUR Strings[220]
0450 #define key_f16                        CUR Strings[221]
0451 #define key_f17                        CUR Strings[222]
0452 #define key_f18                        CUR Strings[223]
0453 #define key_f19                        CUR Strings[224]
0454 #define key_f20                        CUR Strings[225]
0455 #define key_f21                        CUR Strings[226]
0456 #define key_f22                        CUR Strings[227]
0457 #define key_f23                        CUR Strings[228]
0458 #define key_f24                        CUR Strings[229]
0459 #define key_f25                        CUR Strings[230]
0460 #define key_f26                        CUR Strings[231]
0461 #define key_f27                        CUR Strings[232]
0462 #define key_f28                        CUR Strings[233]
0463 #define key_f29                        CUR Strings[234]
0464 #define key_f30                        CUR Strings[235]
0465 #define key_f31                        CUR Strings[236]
0466 #define key_f32                        CUR Strings[237]
0467 #define key_f33                        CUR Strings[238]
0468 #define key_f34                        CUR Strings[239]
0469 #define key_f35                        CUR Strings[240]
0470 #define key_f36                        CUR Strings[241]
0471 #define key_f37                        CUR Strings[242]
0472 #define key_f38                        CUR Strings[243]
0473 #define key_f39                        CUR Strings[244]
0474 #define key_f40                        CUR Strings[245]
0475 #define key_f41                        CUR Strings[246]
0476 #define key_f42                        CUR Strings[247]
0477 #define key_f43                        CUR Strings[248]
0478 #define key_f44                        CUR Strings[249]
0479 #define key_f45                        CUR Strings[250]
0480 #define key_f46                        CUR Strings[251]
0481 #define key_f47                        CUR Strings[252]
0482 #define key_f48                        CUR Strings[253]
0483 #define key_f49                        CUR Strings[254]
0484 #define key_f50                        CUR Strings[255]
0485 #define key_f51                        CUR Strings[256]
0486 #define key_f52                        CUR Strings[257]
0487 #define key_f53                        CUR Strings[258]
0488 #define key_f54                        CUR Strings[259]
0489 #define key_f55                        CUR Strings[260]
0490 #define key_f56                        CUR Strings[261]
0491 #define key_f57                        CUR Strings[262]
0492 #define key_f58                        CUR Strings[263]
0493 #define key_f59                        CUR Strings[264]
0494 #define key_f60                        CUR Strings[265]
0495 #define key_f61                        CUR Strings[266]
0496 #define key_f62                        CUR Strings[267]
0497 #define key_f63                        CUR Strings[268]
0498 #define clr_bol                        CUR Strings[269]
0499 #define clear_margins                  CUR Strings[270]
0500 #define set_left_margin                CUR Strings[271]
0501 #define set_right_margin               CUR Strings[272]
0502 #define label_format                   CUR Strings[273]
0503 #define set_clock                      CUR Strings[274]
0504 #define display_clock                  CUR Strings[275]
0505 #define remove_clock                   CUR Strings[276]
0506 #define create_window                  CUR Strings[277]
0507 #define goto_window                    CUR Strings[278]
0508 #define hangup                         CUR Strings[279]
0509 #define dial_phone                     CUR Strings[280]
0510 #define quick_dial                     CUR Strings[281]
0511 #define tone                           CUR Strings[282]
0512 #define pulse                          CUR Strings[283]
0513 #define flash_hook                     CUR Strings[284]
0514 #define fixed_pause                    CUR Strings[285]
0515 #define wait_tone                      CUR Strings[286]
0516 #define user0                          CUR Strings[287]
0517 #define user1                          CUR Strings[288]
0518 #define user2                          CUR Strings[289]
0519 #define user3                          CUR Strings[290]
0520 #define user4                          CUR Strings[291]
0521 #define user5                          CUR Strings[292]
0522 #define user6                          CUR Strings[293]
0523 #define user7                          CUR Strings[294]
0524 #define user8                          CUR Strings[295]
0525 #define user9                          CUR Strings[296]
0526 #define orig_pair                      CUR Strings[297]
0527 #define orig_colors                    CUR Strings[298]
0528 #define initialize_color               CUR Strings[299]
0529 #define initialize_pair                CUR Strings[300]
0530 #define set_color_pair                 CUR Strings[301]
0531 #define set_foreground                 CUR Strings[302]
0532 #define set_background                 CUR Strings[303]
0533 #define change_char_pitch              CUR Strings[304]
0534 #define change_line_pitch              CUR Strings[305]
0535 #define change_res_horz                CUR Strings[306]
0536 #define change_res_vert                CUR Strings[307]
0537 #define define_char                    CUR Strings[308]
0538 #define enter_doublewide_mode          CUR Strings[309]
0539 #define enter_draft_quality            CUR Strings[310]
0540 #define enter_italics_mode             CUR Strings[311]
0541 #define enter_leftward_mode            CUR Strings[312]
0542 #define enter_micro_mode               CUR Strings[313]
0543 #define enter_near_letter_quality      CUR Strings[314]
0544 #define enter_normal_quality           CUR Strings[315]
0545 #define enter_shadow_mode              CUR Strings[316]
0546 #define enter_subscript_mode           CUR Strings[317]
0547 #define enter_superscript_mode         CUR Strings[318]
0548 #define enter_upward_mode              CUR Strings[319]
0549 #define exit_doublewide_mode           CUR Strings[320]
0550 #define exit_italics_mode              CUR Strings[321]
0551 #define exit_leftward_mode             CUR Strings[322]
0552 #define exit_micro_mode                CUR Strings[323]
0553 #define exit_shadow_mode               CUR Strings[324]
0554 #define exit_subscript_mode            CUR Strings[325]
0555 #define exit_superscript_mode          CUR Strings[326]
0556 #define exit_upward_mode               CUR Strings[327]
0557 #define micro_column_address           CUR Strings[328]
0558 #define micro_down                     CUR Strings[329]
0559 #define micro_left                     CUR Strings[330]
0560 #define micro_right                    CUR Strings[331]
0561 #define micro_row_address              CUR Strings[332]
0562 #define micro_up                       CUR Strings[333]
0563 #define order_of_pins                  CUR Strings[334]
0564 #define parm_down_micro                CUR Strings[335]
0565 #define parm_left_micro                CUR Strings[336]
0566 #define parm_right_micro               CUR Strings[337]
0567 #define parm_up_micro                  CUR Strings[338]
0568 #define select_char_set                CUR Strings[339]
0569 #define set_bottom_margin              CUR Strings[340]
0570 #define set_bottom_margin_parm         CUR Strings[341]
0571 #define set_left_margin_parm           CUR Strings[342]
0572 #define set_right_margin_parm          CUR Strings[343]
0573 #define set_top_margin                 CUR Strings[344]
0574 #define set_top_margin_parm            CUR Strings[345]
0575 #define start_bit_image                CUR Strings[346]
0576 #define start_char_set_def             CUR Strings[347]
0577 #define stop_bit_image                 CUR Strings[348]
0578 #define stop_char_set_def              CUR Strings[349]
0579 #define subscript_characters           CUR Strings[350]
0580 #define superscript_characters         CUR Strings[351]
0581 #define these_cause_cr                 CUR Strings[352]
0582 #define zero_motion                    CUR Strings[353]
0583 #define char_set_names                 CUR Strings[354]
0584 #define key_mouse                      CUR Strings[355]
0585 #define mouse_info                     CUR Strings[356]
0586 #define req_mouse_pos                  CUR Strings[357]
0587 #define get_mouse                      CUR Strings[358]
0588 #define set_a_foreground               CUR Strings[359]
0589 #define set_a_background               CUR Strings[360]
0590 #define pkey_plab                      CUR Strings[361]
0591 #define device_type                    CUR Strings[362]
0592 #define code_set_init                  CUR Strings[363]
0593 #define set0_des_seq                   CUR Strings[364]
0594 #define set1_des_seq                   CUR Strings[365]
0595 #define set2_des_seq                   CUR Strings[366]
0596 #define set3_des_seq                   CUR Strings[367]
0597 #define set_lr_margin                  CUR Strings[368]
0598 #define set_tb_margin                  CUR Strings[369]
0599 #define bit_image_repeat               CUR Strings[370]
0600 #define bit_image_newline              CUR Strings[371]
0601 #define bit_image_carriage_return      CUR Strings[372]
0602 #define color_names                    CUR Strings[373]
0603 #define define_bit_image_region        CUR Strings[374]
0604 #define end_bit_image_region           CUR Strings[375]
0605 #define set_color_band                 CUR Strings[376]
0606 #define set_page_length                CUR Strings[377]
0607 #define display_pc_char                CUR Strings[378]
0608 #define enter_pc_charset_mode          CUR Strings[379]
0609 #define exit_pc_charset_mode           CUR Strings[380]
0610 #define enter_scancode_mode            CUR Strings[381]
0611 #define exit_scancode_mode             CUR Strings[382]
0612 #define pc_term_options                CUR Strings[383]
0613 #define scancode_escape                CUR Strings[384]
0614 #define alt_scancode_esc               CUR Strings[385]
0615 #define enter_horizontal_hl_mode       CUR Strings[386]
0616 #define enter_left_hl_mode             CUR Strings[387]
0617 #define enter_low_hl_mode              CUR Strings[388]
0618 #define enter_right_hl_mode            CUR Strings[389]
0619 #define enter_top_hl_mode              CUR Strings[390]
0620 #define enter_vertical_hl_mode         CUR Strings[391]
0621 #define set_a_attributes               CUR Strings[392]
0622 #define set_pglen_inch                 CUR Strings[393]
0623 
0624 #define BOOLWRITE 37
0625 #define NUMWRITE  33
0626 #define STRWRITE  394
0627 
0628 /* older synonyms for some capabilities */
0629 #define beehive_glitch  no_esc_ctlc
0630 #define teleray_glitch  dest_tabs_magic_smso
0631 
0632 /* HPUX-11 uses this name rather than the standard one */
0633 #ifndef micro_char_size
0634 #define micro_char_size micro_col_size
0635 #endif
0636 
0637 #ifdef __INTERNAL_CAPS_VISIBLE
0638 #define termcap_init2                  CUR Strings[394]
0639 #define termcap_reset                  CUR Strings[395]
0640 #define magic_cookie_glitch_ul         CUR Numbers[33]
0641 #define backspaces_with_bs             CUR Booleans[37]
0642 #define crt_no_scrolling               CUR Booleans[38]
0643 #define no_correctly_working_cr        CUR Booleans[39]
0644 #define carriage_return_delay          CUR Numbers[34]
0645 #define new_line_delay                 CUR Numbers[35]
0646 #define linefeed_if_not_lf             CUR Strings[396]
0647 #define backspace_if_not_bs            CUR Strings[397]
0648 #define gnu_has_meta_key               CUR Booleans[40]
0649 #define linefeed_is_newline            CUR Booleans[41]
0650 #define backspace_delay                CUR Numbers[36]
0651 #define horizontal_tab_delay           CUR Numbers[37]
0652 #define number_of_function_keys        CUR Numbers[38]
0653 #define other_non_function_keys        CUR Strings[398]
0654 #define arrow_key_map                  CUR Strings[399]
0655 #define has_hardware_tabs              CUR Booleans[42]
0656 #define return_does_clr_eol            CUR Booleans[43]
0657 #define acs_ulcorner                   CUR Strings[400]
0658 #define acs_llcorner                   CUR Strings[401]
0659 #define acs_urcorner                   CUR Strings[402]
0660 #define acs_lrcorner                   CUR Strings[403]
0661 #define acs_ltee                       CUR Strings[404]
0662 #define acs_rtee                       CUR Strings[405]
0663 #define acs_btee                       CUR Strings[406]
0664 #define acs_ttee                       CUR Strings[407]
0665 #define acs_hline                      CUR Strings[408]
0666 #define acs_vline                      CUR Strings[409]
0667 #define acs_plus                       CUR Strings[410]
0668 #define memory_lock                    CUR Strings[411]
0669 #define memory_unlock                  CUR Strings[412]
0670 #define box_chars_1                    CUR Strings[413]
0671 #endif /* __INTERNAL_CAPS_VISIBLE */
0672 
0673 
0674 /*
0675  * Predefined terminfo array sizes
0676  */
0677 #define BOOLCOUNT 44
0678 #define NUMCOUNT  39
0679 #define STRCOUNT  414
0680 
0681 /* used by code for comparing entries */
0682 #define acs_chars_index  146
0683 
0684 typedef struct termtype {   /* in-core form of terminfo data */
0685     char  *term_names;      /* str_table offset of term names */
0686     char  *str_table;       /* pointer to string table */
0687     NCURSES_SBOOL  *Booleans;   /* array of boolean values */
0688     short *Numbers;     /* array of integer values */
0689     char  **Strings;        /* array of string offsets */
0690 
0691 #if NCURSES_XNAMES
0692     char  *ext_str_table;   /* pointer to extended string table */
0693     char  **ext_Names;      /* corresponding names */
0694 
0695     unsigned short num_Booleans;/* count total Booleans */
0696     unsigned short num_Numbers; /* count total Numbers */
0697     unsigned short num_Strings; /* count total Strings */
0698 
0699     unsigned short ext_Booleans;/* count extensions to Booleans */
0700     unsigned short ext_Numbers; /* count extensions to Numbers */
0701     unsigned short ext_Strings; /* count extensions to Strings */
0702 #endif /* NCURSES_XNAMES */
0703 
0704 } TERMTYPE;
0705 
0706 /*
0707  * The only reason these structures are visible is for read-only use.
0708  * Programs which modify the data are not, never were, portable across
0709  * curses implementations.
0710  *
0711  * The first field in TERMINAL is used in macros.
0712  * The remaining fields are private.
0713  */
0714 #ifdef NCURSES_INTERNALS
0715 
0716 #undef TERMINAL
0717 #define TERMINAL struct term
0718 TERMINAL;
0719 
0720 typedef struct termtype2 {  /* in-core form of terminfo data */
0721     char  *term_names;      /* str_table offset of term names */
0722     char  *str_table;       /* pointer to string table */
0723     NCURSES_SBOOL  *Booleans;   /* array of boolean values */
0724     int   *Numbers;     /* array of integer values */
0725     char  **Strings;        /* array of string offsets */
0726 
0727 #if NCURSES_XNAMES
0728     char  *ext_str_table;   /* pointer to extended string table */
0729     char  **ext_Names;      /* corresponding names */
0730 
0731     unsigned short num_Booleans;/* count total Booleans */
0732     unsigned short num_Numbers; /* count total Numbers */
0733     unsigned short num_Strings; /* count total Strings */
0734 
0735     unsigned short ext_Booleans;/* count extensions to Booleans */
0736     unsigned short ext_Numbers; /* count extensions to Numbers */
0737     unsigned short ext_Strings; /* count extensions to Strings */
0738 #endif /* NCURSES_XNAMES */
0739 
0740 } TERMTYPE2;
0741 #else
0742 
0743 typedef struct term {       /* describe an actual terminal */
0744     TERMTYPE    type;       /* terminal type description */
0745 } TERMINAL;
0746 
0747 #endif /* NCURSES_INTERNALS */
0748 
0749 
0750 #if 0 && !0
0751 extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;
0752 #elif 0
0753 NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);
0754 #define cur_term   NCURSES_PUBLIC_VAR(cur_term())
0755 #else
0756 extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;
0757 #endif
0758 
0759 #if 0 || 0
0760 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames);
0761 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes);
0762 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolfnames);
0763 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numnames);
0764 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numcodes);
0765 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numfnames);
0766 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strnames);
0767 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strcodes);
0768 NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames);
0769 
0770 #define boolnames  NCURSES_PUBLIC_VAR(boolnames())
0771 #define boolcodes  NCURSES_PUBLIC_VAR(boolcodes())
0772 #define boolfnames NCURSES_PUBLIC_VAR(boolfnames())
0773 #define numnames   NCURSES_PUBLIC_VAR(numnames())
0774 #define numcodes   NCURSES_PUBLIC_VAR(numcodes())
0775 #define numfnames  NCURSES_PUBLIC_VAR(numfnames())
0776 #define strnames   NCURSES_PUBLIC_VAR(strnames())
0777 #define strcodes   NCURSES_PUBLIC_VAR(strcodes())
0778 #define strfnames  NCURSES_PUBLIC_VAR(strfnames())
0779 
0780 #else
0781 
0782 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];
0783 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];
0784 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];
0785 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[];
0786 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[];
0787 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[];
0788 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[];
0789 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[];
0790 extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[];
0791 
0792 #endif
0793 
0794 /*
0795  * These entrypoints are used only by the ncurses utilities such as tic.
0796  */
0797 #ifdef NCURSES_INTERNALS
0798 
0799 extern NCURSES_EXPORT(int) _nc_set_tty_mode (TTY *buf);
0800 extern NCURSES_EXPORT(int) _nc_read_entry2 (const char * const, char * const, TERMTYPE2 *const);
0801 extern NCURSES_EXPORT(int) _nc_read_file_entry (const char *const, TERMTYPE2 *);
0802 extern NCURSES_EXPORT(int) _nc_read_termtype (TERMTYPE2 *, char *, int);
0803 extern NCURSES_EXPORT(char *) _nc_first_name (const char *const);
0804 extern NCURSES_EXPORT(int) _nc_name_match (const char *const, const char *const, const char *const);
0805 extern NCURSES_EXPORT(char *) _nc_tiparm(int, const char *, ...);
0806 
0807 #endif /* NCURSES_INTERNALS */
0808 
0809 
0810 /*
0811  * These entrypoints are used by tack 1.07.
0812  */
0813 extern NCURSES_EXPORT(const TERMTYPE *) _nc_fallback (const char *);
0814 extern NCURSES_EXPORT(int) _nc_read_entry (const char * const, char * const, TERMTYPE *const);
0815 
0816 /*
0817  * Normal entry points
0818  */
0819 extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *);
0820 extern NCURSES_EXPORT(int) del_curterm (TERMINAL *);
0821 
0822 /* miscellaneous entry points */
0823 extern NCURSES_EXPORT(int) restartterm (NCURSES_CONST char *, int, int *);
0824 extern NCURSES_EXPORT(int) setupterm (const char *,int,int *);
0825 
0826 /* terminfo entry points, also declared in curses.h */
0827 #if !defined(__NCURSES_H)
0828 extern NCURSES_EXPORT(char *) tigetstr (const char *);
0829 extern NCURSES_EXPORT_VAR(char) ttytype[];
0830 extern NCURSES_EXPORT(int) putp (const char *);
0831 extern NCURSES_EXPORT(int) tigetflag (const char *);
0832 extern NCURSES_EXPORT(int) tigetnum (const char *);
0833 
0834 #if 1 /* NCURSES_TPARM_VARARGS */
0835 extern NCURSES_EXPORT(char *) tparm (const char *, ...);    /* special */
0836 #else
0837 extern NCURSES_EXPORT(char *) tparm (const char *, long,long,long,long,long,long,long,long,long);   /* special */
0838 #endif
0839 
0840 extern NCURSES_EXPORT(char *) tiparm (const char *, ...);       /* special */
0841 
0842 #endif /* __NCURSES_H */
0843 
0844 /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */
0845 #if !defined(NCURSES_TERMCAP_H_incl)
0846 extern NCURSES_EXPORT(char *) tgetstr (const char *, char **);
0847 extern NCURSES_EXPORT(char *) tgoto (const char *, int, int);
0848 extern NCURSES_EXPORT(int) tgetent (char *, const char *);
0849 extern NCURSES_EXPORT(int) tgetflag (const char *);
0850 extern NCURSES_EXPORT(int) tgetnum (const char *);
0851 extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));
0852 #endif /* NCURSES_TERMCAP_H_incl */
0853 
0854 /*
0855  * Include curses.h before term.h to enable these extensions.
0856  */
0857 #if defined(NCURSES_SP_FUNCS) && (NCURSES_SP_FUNCS != 0)
0858 
0859 extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tigetstr) (SCREEN*, const char *);
0860 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(putp) (SCREEN*, const char *);
0861 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tigetflag) (SCREEN*, const char *);
0862 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tigetnum) (SCREEN*, const char *);
0863 
0864 #if 1 /* NCURSES_TPARM_VARARGS */
0865 extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tparm) (SCREEN*, const char *, ...); /* special */
0866 #else
0867 extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tparm) (SCREEN*, const char *, long,long,long,long,long,long,long,long,long);    /* special */
0868 #endif
0869 
0870 /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */
0871 extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tgetstr) (SCREEN*, const char *, char **);
0872 extern NCURSES_EXPORT(char *)  NCURSES_SP_NAME(tgoto) (SCREEN*, const char *, int, int);
0873 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetent) (SCREEN*, char *, const char *);
0874 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetflag) (SCREEN*, const char *);
0875 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tgetnum) (SCREEN*, const char *);
0876 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *, int, NCURSES_SP_OUTC);
0877 
0878 extern NCURSES_EXPORT(TERMINAL *) NCURSES_SP_NAME(set_curterm) (SCREEN*, TERMINAL *);
0879 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(del_curterm) (SCREEN*, TERMINAL *);
0880 
0881 extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(restartterm) (SCREEN*, NCURSES_CONST char *, int, int *);
0882 #endif /* NCURSES_SP_FUNCS */
0883 
0884 /*
0885  * Debugging features.
0886  */
0887 extern GCC_NORETURN NCURSES_EXPORT(void)    exit_terminfo(int);
0888 
0889 #ifdef __cplusplus
0890 }
0891 #endif
0892 
0893 #endif /* NCURSES_TERM_H_incl */