/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | tries.c | 49 _nc_expand_try(TRIES * tree, unsigned code, int *count, size_t len) argument 51 TRIES *ptr = tree; local 52 char *result = 0; local 90 _nc_remove_key(TRIES ** tree, unsigned code) argument 106 TRIES *to_free = *tree; local 122 _nc_remove_string(TRIES ** tree, const char *string) argument 134 TRIES *to_free = *tree; local [all...] |
H A D | use_window.c | 38 use_window(WINDOW *win, NCURSES_WINDOW_CB func, void *data) argument 40 int code = OK; local [all...] |
H A D | version.c | 38 curses_version(void) function [all...] |
H A D | vsscanf.c | 47 #define L_SQUARE macro 48 #define R_SQUARE macro 51 cUnknown enumerator in enum:__anon4643 52 ,cError /* anything that isn't ANSI */ enumerator in enum:__anon4643 53 ,cAssigned enumerator in enum:__anon4643 54 ,cChar enumerator in enum:__anon4643 55 ,cInt enumerator in enum:__anon4643 56 ,cFloat enumerator in enum:__anon4643 57 ,cDouble enumerator in enum:__anon4643 58 ,cPointer enumerator in enum:__anon4643 59 ,cLong enumerator in enum:__anon4643 60 ,cShort enumerator in enum:__anon4643 61 ,cRange enumerator in enum:__anon4643 62 ,cString enumerator in enum:__anon4643 63 } ChunkType; typedef in typeref:enum:__anon4643 66 oUnknown enumerator in enum:__anon4644 67 ,oShort enumerator in enum:__anon4644 68 ,oLong enumerator in enum:__anon4644 69 } OtherType; typedef in typeref:enum:__anon4644 72 sUnknown enumerator in enum:__anon4645 73 ,sPercent /* last was '%' beginning a format */ enumerator in enum:__anon4645 74 ,sNormal /* ...somewhere in the middle */ enumerator in enum:__anon4645 75 ,sLeft /* last was left square bracket beginning a range */ enumerator in enum:__anon4645 76 ,sRange /* ...somewhere in the middle */ enumerator in enum:__anon4645 77 ,sFinal /* last finished a format */ enumerator in enum:__anon4645 78 } ScanState; typedef in typeref:enum:__anon4645 81 final_ch(int ch, OtherType other) argument 83 ChunkType result = cUnknown; local 147 other_ch(int ch) argument 149 OtherType result = oUnknown; local 164 vsscanf(const char *str, const char *format, va_list ap) argument 170 FILE strbuf; local 353 _nc_vsscanf(void) function [all...] |
H A D | wresize.c | 39 cleanup_lines(struct ldat *data, int length) argument 52 repair_subwindows(WINDOW *cmp) argument 54 WINDOWLIST *wp; local 55 struct ldat *pline = cmp->_line; local 56 int row; local 58 SCREEN *sp = _nc_screen_of(cmp); local 64 WINDOW *tst = &(wp->win); local 93 wresize(WINDOW *win, int ToLines, int ToCols) argument 95 int col, row, size_x, size_y; local 96 struct ldat *pline; local 97 struct ldat *new_lines = 0; local 153 int begin = (row > size_y) ? 0 : (size_x + 1); local 154 int end = ToCols; local 155 NCURSES_CH_T *s; local [all...] |
/freebsd-11-stable/contrib/ncurses/ncurses/ |
H A D | build.priv.h | 44 #define CURSES_PRIV_H macro 55 #define MODULE_ID macro 57 #define MODULE_ID macro 73 #define EXIT_SUCCESS macro 77 #define EXIT_FAILURE macro 80 #define FreeAndNull macro 81 #define UChar macro 82 #define SIZEOF macro 89 #define NCURSES_ARRAY macro 92 NCURSES_ARRAY(boolnames); variable 93 NCURSES_ARRAY(boolfnames); variable 94 NCURSES_ARRAY(numnames); variable 95 NCURSES_ARRAY(numfnames); variable 96 NCURSES_ARRAY(strnames); variable 97 NCURSES_ARRAY(strfnames); variable [all...] |
H A D | curses.priv.h | 47 #define CURSES_PRIV_H macro 59 #define MODULE_ID macro 61 #define MODULE_ID macro 91 # define EILSEQ macro 97 # define PATH_MAX macro 99 # define PATH_MAX macro 101 # define PATH_MAX macro 111 #define USE_FUNC_POLL macro 118 #define USE_FUNC_POLL macro 134 #define USE_GPM_SUPPORT macro 136 #define USE_GPM_SUPPORT macro 141 #define USE_QNX_MOUSE macro 143 #define USE_QNX_MOUSE macro 148 #define USE_EMX_MOUSE macro 150 #define USE_EMX_MOUSE macro 155 #define USE_KLIBC_KBD macro 156 #define USE_KLIBC_MOUSE macro 158 #define USE_KLIBC_KBD macro 159 #define USE_KLIBC_MOUSE macro 162 #define DEFAULT_MAXCLICK macro 163 #define EV_MAX macro 170 #undef HAVE_SIZECHANGE macro 171 #define HAVE_SIZECHANGE macro 175 #define USE_SIZECHANGE macro 177 #define USE_SIZECHANGE macro 178 #undef USE_SIGWINCH macro 179 #define USE_SIGWINCH macro 187 #define use_terminfo_vars macro 189 #define use_terminfo_vars macro 198 #define memmove macro 200 #define memmove macro 208 #define begin_va_copy macro 209 #define end_va_copy macro 211 #define begin_va_copy macro 212 #define end_va_copy macro 214 #define begin_va_copy macro 215 #define end_va_copy macro 223 #define S_ISDIR macro 227 #define S_ISREG macro 235 #define USE_SCROLL_HINTS macro 237 #define USE_SCROLL_HINTS macro 242 #define if_USE_SCROLL_HINTS macro 244 #define if_USE_SCROLL_HINTS macro 253 #define USE_SP_RIPOFF macro 254 #define USE_SP_TERMTYPE macro 255 #define USE_SP_WINDOWLIST macro 266 #define TRIES macro 268 TRIES *child; /* ptr to child. NULL if none */ variable 269 TRIES *sibling; /* ptr to sibling. NULL if none */ variable 270 unsigned char ch; /* character at this node */ variable 271 unsigned short value; /* code of string so far. 0 if none. */ variable 272 #undef TRIES macro 278 #define StringOf macro 280 #define L_BRACE macro 281 #define R_BRACE macro 282 #define S_QUOTE macro 283 #define D_QUOTE macro 285 #define VT_ACSC macro 291 #define MAXCOLUMNS macro 292 #define MAXLINES macro 293 #define FIFO_SIZE macro 295 #define ACS_LEN macro 297 #define WINDOWLIST macro 300 #define _nc_bkgd macro 302 #undef _XOPEN_SOURCE_EXTENDED macro 303 #undef _XPG5 macro 304 #define _nc_bkgd macro 305 #define wgetbkgrnd macro 306 #define wbkgrnd macro 309 #undef NCURSES_OPAQUE macro 310 #define NCURSES_INTERNALS macro 311 #define NCURSES_OPAQUE macro 317 NCURSES_COLOR_T red, green, blue; /* what color_content() returns */ member in struct:__anon4646 318 NCURSES_COLOR_T r, g, b; /* params to init_color() */ member in struct:__anon4646 319 int init; /* true if we called init_color() */ member in struct:__anon4646 321 color_t; typedef in typeref:struct:__anon4646 328 #define USE_SP_FUNC_SUPPORT macro 329 #define USE_EXT_SP_FUNC_SUPPORT macro 332 #define SP_PARM macro 333 #define NCURSES_SP_ARG macro 334 #define NCURSES_SP_DCL macro 335 #define NCURSES_SP_DCL0 macro 336 #define NCURSES_SP_ARGx macro 337 #define NCURSES_SP_DCLx macro 339 #define SP_PARM macro 340 #define NCURSES_SP_ARG macro 341 #define NCURSES_SP_DCL macro 342 #define NCURSES_SP_DCL0 macro 343 #define NCURSES_SP_ARGx macro 344 #define NCURSES_SP_DCLx macro 349 #define IsPreScreen macro 350 #define HasTerminal macro 351 #define IsValidScreen macro 354 #define CurTerm macro 356 #define CurTerm macro 360 #define TerminalOf macro 362 #define TerminalOf macro 373 #undef CUR macro 376 #define SP_TERMTYPE macro 386 #define USE_ITALIC macro 388 #define USE_ITALIC macro 389 #define A_ITALIC macro 397 #define ColorPair macro 398 #define PairNumber macro 400 #define ColorPair macro 401 #define PairNumber macro 404 #define unColor macro 405 #define unColor2 macro 414 #define if_EXT_COLORS macro 415 #define SetPair macro 416 #define SetPair2 macro 418 #define GetPair macro 419 #define GetPair2 macro 420 #define oldColor macro 421 #define GET_WINDOW_PAIR macro 422 #define SET_WINDOW_PAIR macro 423 #define SameAttrOf macro 425 #define VIDATTR macro 429 #define if_EXT_COLORS macro 430 #define SetPair macro 432 #define GetPair macro 433 #define GET_WINDOW_PAIR macro 434 #define SET_WINDOW_PAIR macro 436 #define SameAttrOf macro 438 #define VIDATTR macro 442 #define NCURSES_OUTC_FUNC macro 443 #define NCURSES_PUTP2 macro 444 #define NCURSES_PUTP2_FLUSH macro 447 #define GetNoPadding macro 448 #define SetNoPadding macro 451 #define GetNoPadding macro 452 #define SetNoPadding macro 455 #define WINDOW_ATTRS macro 457 #define SCREEN_ATTRS macro 458 #define GET_SCREEN_PAIR macro 459 #define SET_SCREEN_PAIR macro 470 #define ptrLines macro 471 #define ptrCols macro 472 #define ptrTabsize macro 473 #define ptrEscdelay macro 475 #define SET_LINES macro 476 #define SET_COLS macro 477 #define SET_TABSIZE macro 478 #define SET_ESCDELAY macro 482 #define ptrLines macro 483 #define ptrCols macro 484 #define ptrTabsize macro 485 #define ptrEscdelay macro 487 #define SET_LINES macro 488 #define SET_COLS macro 489 #define SET_TABSIZE macro 490 #define SET_ESCDELAY macro 494 #define TR_MUTEX macro 503 #define TR_GLOBAL_MUTEX macro 508 # define _cat_pragma macro 509 # define _weak_pragma macro 511 # define _weak_pragma macro 513 # define _declare macro 514 # define weak_symbol macro 516 # undef USE_WEAK_SYMBOLS macro 517 # define USE_WEAK_SYMBOLS macro 530 #define _nc_lock_global macro 531 #define _nc_try_global macro 532 #define _nc_unlock_global macro 540 weak_symbol(pthread_sigmask); variable 541 weak_symbol(pthread_kill); variable 542 weak_symbol(pthread_self); variable 543 weak_symbol(pthread_equal); variable 544 weak_symbol(pthread_mutex_init); variable 545 weak_symbol(pthread_mutex_lock); variable 546 weak_symbol(pthread_mutex_unlock); variable 547 weak_symbol(pthread_mutex_trylock); variable 548 weak_symbol(pthread_mutexattr_settype); variable 549 weak_symbol(pthread_mutexattr_init); variable 551 # undef sigprocmask macro 552 # define sigprocmask macro 557 #undef HAVE_NANOSLEEP macro 558 #define HAVE_NANOSLEEP macro 566 weak_symbol(pthread_sigmask); variable 567 weak_symbol(pthread_kill); variable 568 weak_symbol(pthread_self); variable 569 weak_symbol(pthread_equal); variable 571 # undef sigprocmask macro 572 # define sigprocmask macro 576 #define _nc_init_pthreads macro 577 #define _nc_mutex_init macro 579 #define _nc_lock_global macro 580 #define _nc_try_global macro 581 #define _nc_unlock_global macro 595 #define _nc_nonsp_lock_global macro 596 #define _nc_nonsp_try_global macro 597 #define _nc_nonsp_unlock_global macro 599 #define _nc_sp_lock_global macro 600 #define _nc_sp_try_global macro 601 #define _nc_sp_unlock_global macro 605 #define _nc_nonsp_lock_global macro 606 #define _nc_nonsp_try_global macro 607 #define _nc_nonsp_unlock_global macro 609 #define _nc_sp_lock_global macro 610 #define _nc_sp_try_global macro 611 #define _nc_sp_unlock_global macro 616 # define PRECISE_GETTIME macro 617 # define TimeType macro 619 # define PRECISE_GETTIME macro 620 # define TimeType macro 626 typedef unsigned colorpair_t; /* type big enough to store PAIR_OF() */ typedef 627 #define C_SHIFT macro 628 #define C_MASK macro 629 #define PAIR_OF macro 630 #define FORE_OF macro 631 #define BACK_OF macro 632 #define isDefaultColor macro 634 #define COLOR_DEFAULT macro 638 #undef NCURSES_CH_T macro 639 #define NCURSES_CH_T macro 644 struct ldat struct 646 NCURSES_CH_T *text; /* text of the line */ member in struct:ldat 647 NCURSES_SIZE_T firstchar; /* first changed character in the line */ member in struct:ldat 648 NCURSES_SIZE_T lastchar; /* last changed character in the line */ member in struct:ldat 649 NCURSES_SIZE_T oldindex; /* index of the line at last update */ member in struct:ldat 654 M_XTERM = -1 /* use xterm's mouse tracking? */ enumerator in enum:__anon4647 655 ,M_NONE = 0 /* no mouse device */ enumerator in enum:__anon4647 657 ,M_GPM /* use GPM */ enumerator in enum:__anon4647 660 ,M_SYSMOUSE /* FreeBSD sysmouse on console */ enumerator in enum:__anon4647 663 ,M_TERM_DRIVER /* Win32 console, etc */ enumerator in enum:__anon4647 665 } MouseType; typedef in typeref:enum:__anon4647 672 unsigned long hashval; member in struct:__anon4648 673 int oldcount, newcount; member in struct:__anon4648 674 int oldindex, newindex; member in struct:__anon4648 675 } HASHMAP; typedef in typeref:struct:__anon4648 687 char *ent_text; /* text for the label */ member in struct:__anon4649 688 char *form_text; /* formatted text (left/center/...) */ member in struct:__anon4649 689 int ent_x; /* x coordinate of this field */ member in struct:__anon4649 690 char dirty; /* this label has changed */ member in struct:__anon4649 691 char visible; /* field is visible */ member in struct:__anon4649 692 } slk_ent; typedef in typeref:struct:__anon4649 694 typedef struct _SLK { struct 695 bool dirty; /* all labels have changed */ member in struct:_SLK 696 bool hidden; /* soft labels are hidden */ member in struct:_SLK 697 WINDOW *win; member in struct:_SLK 698 slk_ent *ent; member in struct:_SLK 699 short maxlab; /* number of available labels */ member in struct:_SLK 700 short labcnt; /* number of allocated labels */ member in struct:_SLK 701 short maxlen; /* length of labels */ member in struct:_SLK 702 NCURSES_CH_T attr; /* soft label attribute */ member in struct:_SLK 703 } SLK; typedef in typeref:struct:_SLK 708 WINDOW *win; /* the window used in the hook */ member in struct:__anon4650 709 int line; /* lines to take, < 0 => from bottom*/ member in struct:__anon4650 710 int (*hook)(WINDOW *, int); /* callback for user */ member in struct:__anon4650 711 } ripoff_t; typedef in typeref:struct:__anon4650 714 #undef buttons macro 717 weak_symbol(Gpm_Wgetch); variable 722 typedef int *TYPE_gpm_fd; typedef 723 typedef int (*TYPE_Gpm_Open) (Gpm_Connect *, int); typedef 724 typedef int (*TYPE_Gpm_Close) (void); typedef 725 typedef int (*TYPE_Gpm_GetEvent) (Gpm_Event *); typedef 727 #define my_gpm_fd macro 728 #define my_Gpm_Open macro 729 #define my_Gpm_Close macro 730 #define my_Gpm_GetEvent macro 733 #define my_gpm_fd macro 734 #define my_Gpm_Open macro 735 #define my_Gpm_Close macro 736 #define my_Gpm_GetEvent macro 741 long sequence; member in struct:__anon4651 742 bool last_used; member in struct:__anon4651 743 char *fix_sgr0; /* this holds the filtered sgr0 string */ member in struct:__anon4651 744 char *last_bufp; /* help with fix_sgr0 leak */ member in struct:__anon4651 745 TERMINAL *last_term; member in struct:__anon4651 746 } TGETENT_CACHE; typedef in typeref:struct:__anon4651 748 #define TGETENT_MAX macro 753 #define STACKSIZE macro 757 int num; member in union:__anon4652::__anon4653 758 char *str; member in union:__anon4652::__anon4653 759 } data; member in struct:__anon4652 760 bool num_type; member in struct:__anon4652 761 } STACK_FRAME; typedef in typeref:struct:__anon4652 763 #define NUM_VARS macro 767 const char *tname; member in struct:__anon4654 769 const char *tparam_base; member in struct:__anon4654 771 STACK_FRAME stack[STACKSIZE]; member in struct:__anon4654 772 int stack_ptr; member in struct:__anon4654 774 char *out_buff; member in struct:__anon4654 775 size_t out_size; member in struct:__anon4654 776 size_t out_used; member in struct:__anon4654 778 char *fmt_buff; member in struct:__anon4654 779 size_t fmt_size; member in struct:__anon4654 781 int dynamic_var[NUM_VARS]; member in struct:__anon4654 782 int static_vars[NUM_VARS]; member in struct:__anon4654 783 } TPARM_STATE; typedef in typeref:struct:__anon4654 786 char *text; member in struct:__anon4655 787 size_t size; member in struct:__anon4655 788 } TRACEBUF; typedef in typeref:struct:__anon4655 796 #define LEAF_FMT macro 797 #define LEAF_LEN macro 799 #define LEAF_FMT macro 800 #define LEAF_LEN macro 810 #define TRACEMSE_MAX macro 811 #define TRACEMSE_FMT macro 815 #define INIT_TERM_DRIVER macro 817 #define INIT_TERM_DRIVER macro 821 const char *name; member in struct:__anon4656 822 char *value; member in struct:__anon4656 823 } ITERATOR_VARS; typedef in typeref:struct:__anon4656 829 SIG_ATOMIC_T have_sigtstp; member in struct:__anon4657 830 SIG_ATOMIC_T have_sigwinch; member in struct:__anon4657 831 SIG_ATOMIC_T cleanup_nested; member in struct:__anon4657 833 bool init_signals; member in struct:__anon4657 834 bool init_screen; member in struct:__anon4657 836 char *comp_sourcename; member in struct:__anon4657 837 char *comp_termtype; member in struct:__anon4657 839 bool have_tic_directory; member in struct:__anon4657 840 bool keep_tic_directory; member in struct:__anon4657 841 const char *tic_directory; member in struct:__anon4657 843 char *dbi_list; member in struct:__anon4657 844 int dbi_size; member in struct:__anon4657 846 char *first_name; member in struct:__anon4657 847 char **keyname_table; member in struct:__anon4657 848 int init_keyname; member in struct:__anon4657 850 int slk_format; member in struct:__anon4657 852 char *safeprint_buf; member in struct:__anon4657 853 size_t safeprint_used; member in struct:__anon4657 855 TGETENT_CACHE tgetent_cache[TGETENT_MAX]; member in struct:__anon4657 856 int tgetent_index; member in struct:__anon4657 857 long tgetent_sequence; member in struct:__anon4657 859 char *dbd_blob; /* string-heap for dbd_list[] */ member in struct:__anon4657 860 char **dbd_list; /* distinct places to look for data */ member in struct:__anon4657 861 int dbd_size; /* length of dbd_list[] */ member in struct:__anon4657 862 time_t dbd_time; /* cache last updated */ member in struct:__anon4657 863 ITERATOR_VARS dbd_vars[dbdLAST]; member in struct:__anon4657 866 WINDOWLIST *_nc_windowlist; member in struct:__anon4657 867 #define WindowList macro 871 char *home_terminfo; member in struct:__anon4657 875 int safeprint_cols; member in struct:__anon4657 876 int safeprint_rows; member in struct:__anon4657 880 int (*term_driver)(struct DriverTCB*, const char*, int*); member in struct:__anon4657 884 bool init_trace; member in struct:__anon4657 885 char trace_fname[PATH_MAX]; member in struct:__anon4657 886 int trace_level; member in struct:__anon4657 887 FILE *trace_fp; member in struct:__anon4657 889 char *tracearg_buf; member in struct:__anon4657 890 size_t tracearg_used; member in struct:__anon4657 892 TRACEBUF *tracebuf_ptr; member in struct:__anon4657 893 size_t tracebuf_used; member in struct:__anon4657 895 char tracechr_buf[40]; member in struct:__anon4657 897 char *tracedmp_buf; member in struct:__anon4657 898 size_t tracedmp_used; member in struct:__anon4657 900 unsigned char *tracetry_buf; member in struct:__anon4657 901 size_t tracetry_used; member in struct:__anon4657 903 char traceatr_color_buf[2][80]; member in struct:__anon4657 904 int traceatr_color_sel; member in struct:__anon4657 905 int traceatr_color_last; member in struct:__anon4657 907 int nested_tracef; member in struct:__anon4657 912 pthread_mutex_t mutex_curses; member in struct:__anon4657 913 pthread_mutex_t mutex_tst_tracef; member in struct:__anon4657 914 pthread_mutex_t mutex_tracef; member in struct:__anon4657 915 int nested_tracef; member in struct:__anon4657 916 int use_pthreads; member in struct:__anon4657 917 #define _nc_use_pthreads macro 920 pthread_t read_thread; /* The reading thread */ member in struct:__anon4657 922 } NCURSES_GLOBALS; typedef in typeref:struct:__anon4657 926 #define N_RIPS macro 933 bool use_env; member in struct:__anon4658 934 bool filter_mode; member in struct:__anon4658 935 attr_t previous_attr; member in struct:__anon4658 937 ripoff_t rippedoff[N_RIPS]; member in struct:__anon4658 938 ripoff_t *rsp; member in struct:__anon4658 940 TPARM_STATE tparm_state; member in struct:__anon4658 941 TTY *saved_tty; /* savetty/resetty information */ member in struct:__anon4658 943 bool _no_padding; /* flag to set if padding disabled */ member in struct:__anon4658 945 NCURSES_SP_OUTC _outch; /* output handler if not putc */ member in struct:__anon4658 947 chtype *real_acs_map; member in struct:__anon4658 948 int _LINES; member in struct:__anon4658 949 int _COLS; member in struct:__anon4658 950 int _TABSIZE; member in struct:__anon4658 951 int _ESCDELAY; member in struct:__anon4658 952 TERMINAL *_cur_term; member in struct:__anon4658 954 long _outchars; member in struct:__anon4658 955 const char *_tputs_trace; member in struct:__anon4658 958 bool use_tioctl; member in struct:__anon4658 959 } NCURSES_PRESCREEN; typedef in typeref:struct:__anon4658 965 #define safe_ripoff_sp macro 966 #define safe_ripoff_stack macro 968 #define safe_ripoff_sp macro 969 #define safe_ripoff_stack macro 978 struct screen { struct 979 int _ifd; /* input file descriptor for screen */ member in struct:screen 980 int _ofd; /* output file descriptor for screen */ member in struct:screen 981 FILE *_ofp; /* output file ptr for screen */ member in struct:screen 982 char *out_buffer; /* output buffer */ member in struct:screen 983 size_t out_limit; /* output buffer size */ member in struct:screen 984 size_t out_inuse; /* output buffer current use */ member in struct:screen 985 bool _filtered; /* filter() was called */ member in struct:screen 986 bool _prescreen; /* is in prescreen phase */ member in struct:screen 987 bool _use_env; /* LINES & COLS from environment? */ member in struct:screen 988 int _checkfd; /* filedesc for typeahead check */ member in struct:screen 989 TERMINAL *_term; /* terminal type information */ member in struct:screen 990 TTY _saved_tty; /* savetty/resetty information */ member in struct:screen 991 NCURSES_SIZE_T _lines; /* screen lines */ member in struct:screen 992 NCURSES_SIZE_T _columns; /* screen columns */ member in struct:screen 994 NCURSES_SIZE_T _lines_avail; /* lines available for stdscr */ member in struct:screen 995 NCURSES_SIZE_T _topstolen; /* lines stolen from top */ member in struct:screen 997 WINDOW *_curscr; /* current screen */ member in struct:screen 998 WINDOW *_newscr; /* virtual screen to be updated to */ member in struct:screen 999 WINDOW *_stdscr; /* screen's full-window context */ member in struct:screen 1001 #define CurScreen macro 1002 #define NewScreen macro 1003 #define StdScreen macro 1005 TRIES *_keytry; /* "Try" for use with keypad mode */ member in struct:screen 1006 TRIES *_key_ok; /* Disabled keys via keyok(,FALSE) */ member in struct:screen 1007 bool _tried; /* keypad mode was initialized */ member in struct:screen 1008 bool _keypad_on; /* keypad mode is currently on */ member in struct:screen 1010 bool _called_wgetch; /* check for recursion in wgetch() */ member in struct:screen 1011 int _fifo[FIFO_SIZE]; /* input push-back buffer */ member in struct:screen 1012 short _fifohead, /* head of fifo queue */ member in struct:screen 1013 _fifotail, /* tail of fifo queue */ member in struct:screen 1014 _fifopeek, /* where to peek for next char */ member in struct:screen 1015 _fifohold; /* set if breakout marked */ member in struct:screen 1017 int _endwin; /* are we out of window mode? */ member in struct:screen 1018 NCURSES_CH_T *_current_attr; /* holds current attributes set */ member in struct:screen 1019 int _coloron; /* is color enabled? */ member in struct:screen 1020 int _color_defs; /* are colors modified */ member in struct:screen 1021 int _cursor; /* visibility of the cursor */ member in struct:screen 1022 int _cursrow; /* physical cursor row */ member in struct:screen 1023 int _curscol; /* physical cursor column */ member in struct:screen 1024 bool _notty; /* true if we cannot switch non-tty */ member in struct:screen 1025 int _nl; /* True if NL -> CR/NL is on */ member in struct:screen 1026 int _raw; /* True if in raw mode */ member in struct:screen 1027 int _cbreak; /* 1 if in cbreak mode */ member in struct:screen 1029 int _echo; /* True if echo on */ member in struct:screen 1030 int _use_meta; /* use the meta key? */ member in struct:screen 1031 struct _SLK *_slk; /* ptr to soft key struct / NULL */ member in struct:screen 1032 int slk_format; /* selected format for this screen */ member in struct:screen 1035 bool _no_padding; /* flag to set if padding disabled */ member in struct:screen 1037 int _char_padding; /* cost of character put */ member in struct:screen 1038 int _cr_cost; /* cost of (carriage_return) */ member in struct:screen 1039 int _cup_cost; /* cost of (cursor_address) */ member in struct:screen 1040 int _home_cost; /* cost of (cursor_home) */ member in struct:screen 1041 int _ll_cost; /* cost of (cursor_to_ll) */ member in struct:screen 1043 int _ht_cost; /* cost of (tab) */ member in struct:screen 1044 int _cbt_cost; /* cost of (backtab) */ member in struct:screen 1046 int _cub1_cost; /* cost of (cursor_left) */ member in struct:screen 1047 int _cuf1_cost; /* cost of (cursor_right) */ member in struct:screen 1048 int _cud1_cost; /* cost of (cursor_down) */ member in struct:screen 1049 int _cuu1_cost; /* cost of (cursor_up) */ member in struct:screen 1050 int _cub_cost; /* cost of (parm_cursor_left) */ member in struct:screen 1051 int _cuf_cost; /* cost of (parm_cursor_right) */ member in struct:screen 1052 int _cud_cost; /* cost of (parm_cursor_down) */ member in struct:screen 1053 int _cuu_cost; /* cost of (parm_cursor_up) */ member in struct:screen 1054 int _hpa_cost; /* cost of (column_address) */ member in struct:screen 1055 int _vpa_cost; /* cost of (row_address) */ member in struct:screen 1057 int _ed_cost; /* cost of (clr_eos) */ member in struct:screen 1058 int _el_cost; /* cost of (clr_eol) */ member in struct:screen 1059 int _el1_cost; /* cost of (clr_bol) */ member in struct:screen 1060 int _dch1_cost; /* cost of (delete_character) */ member in struct:screen 1061 int _ich1_cost; /* cost of (insert_character) */ member in struct:screen 1062 int _dch_cost; /* cost of (parm_dch) */ member in struct:screen 1063 int _ich_cost; /* cost of (parm_ich) */ member in struct:screen 1064 int _ech_cost; /* cost of (erase_chars) */ member in struct:screen 1065 int _rep_cost; /* cost of (repeat_char) */ member in struct:screen 1066 int _hpa_ch_cost; /* cost of (column_address) */ member in struct:screen 1067 int _cup_ch_cost; /* cost of (cursor_address) */ member in struct:screen 1068 int _cuf_ch_cost; /* cost of (parm_cursor_right) */ member in struct:screen 1069 int _inline_cost; /* cost of inline-move */ member in struct:screen 1070 int _smir_cost; /* cost of (enter_insert_mode) */ member in struct:screen 1071 int _rmir_cost; /* cost of (exit_insert_mode) */ member in struct:screen 1072 int _ip_cost; /* cost of (insert_padding) */ member in struct:screen 1074 char * _address_cursor; member in struct:screen 1076 int _scrolling; /* 1 if terminal's smart enough to */ member in struct:screen 1079 color_t *_color_table; /* screen's color palette */ member in struct:screen 1080 int _color_count; /* count of colors in palette */ member in struct:screen 1081 colorpair_t *_color_pairs; /* screen's color pair list */ member in struct:screen 1082 int _pair_count; /* count of color pairs */ member in struct:screen 1083 int _pair_limit; /* actual limit of color-pairs */ member in struct:screen 1085 bool _assumed_color; /* use assumed colors */ member in struct:screen 1086 bool _default_color; /* use default colors */ member in struct:screen 1087 bool _has_sgr_39_49; /* has ECMA default color support */ member in struct:screen 1088 int _default_fg; /* assumed default foreground */ member in struct:screen 1089 int _default_bg; /* assumed default background */ member in struct:screen 1090 int _default_pairs; /* count pairs using default color */ member in struct:screen 1092 chtype _ok_attributes; /* valid attributes for terminal */ member in struct:screen 1093 chtype _xmc_suppress; /* attributes to suppress if xmc */ member in struct:screen 1094 chtype _xmc_triggers; /* attributes to process if xmc */ member in struct:screen 1095 chtype * _acs_map; /* the real alternate-charset map */ member in struct:screen 1096 bool * _screen_acs_map; member in struct:screen 1100 bool _use_rmso; /* true if we may use 'rmso' */ member in struct:screen 1101 bool _use_rmul; /* true if we may use 'rmul' */ member in struct:screen 1103 bool _use_ritm; /* true if we may use 'ritm' */ member in struct:screen 1107 bool _extended_key; /* true if an extended key */ member in struct:screen 1117 bool _nc_sp_idlok; member in struct:screen 1118 bool _nc_sp_idcok; member in struct:screen 1123 bool _mouse_initialized; member in struct:screen 1124 MouseType _mouse_type; member in struct:screen 1125 int _maxclick; member in struct:screen 1126 bool (*_mouse_event) (SCREEN *); member in struct:screen 1127 bool (*_mouse_inline)(SCREEN *); member in struct:screen 1128 bool (*_mouse_parse) (SCREEN *, int); member in struct:screen 1129 void (*_mouse_resume)(SCREEN *); member in struct:screen 1130 void (*_mouse_wrap) (SCREEN *); member in struct:screen 1131 int _mouse_fd; /* file-descriptor, if any */ member in struct:screen 1132 bool _mouse_active; /* true if initialized */ member in struct:screen 1133 mmask_t _mouse_mask; /* set via mousemask() */ member in struct:screen 1134 mmask_t _mouse_mask2; /* OR's in press/release bits */ member in struct:screen 1135 mmask_t _mouse_bstate; member in struct:screen 1136 NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */ member in struct:screen 1137 MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */ member in struct:screen 1138 MEVENT *_mouse_eventp; /* next free slot in event queue */ member in struct:screen 1141 bool _mouse_gpm_loaded; member in struct:screen 1142 bool _mouse_gpm_found; member in struct:screen 1144 void *_dlopen_gpm; member in struct:screen 1145 TYPE_gpm_fd _mouse_gpm_fd; member in struct:screen 1146 TYPE_Gpm_Open _mouse_Gpm_Open; member in struct:screen 1147 TYPE_Gpm_Close _mouse_Gpm_Close; member in struct:screen 1148 TYPE_Gpm_GetEvent _mouse_Gpm_GetEvent; member in struct:screen 1150 Gpm_Connect _mouse_gpm_connect; member in struct:screen 1154 int _emxmouse_wfd; member in struct:screen 1155 int _emxmouse_thread; member in struct:screen 1156 int _emxmouse_activated; member in struct:screen 1157 char _emxmouse_buttons[4]; member in struct:screen 1161 MEVENT _sysmouse_fifo[FIFO_SIZE]; member in struct:screen 1162 int _sysmouse_head; member in struct:screen 1163 int _sysmouse_tail; member in struct:screen 1164 int _sysmouse_char_width; /* character width */ member in struct:screen 1165 int _sysmouse_char_height; /* character height */ member in struct:screen 1166 int _sysmouse_old_buttons; member in struct:screen 1167 int _sysmouse_new_buttons; member in struct:screen 1171 MEVENT _drv_mouse_fifo[FIFO_SIZE]; member in struct:screen 1172 int _drv_mouse_head; member in struct:screen 1173 int _drv_mouse_tail; member in struct:screen 1174 int _drv_mouse_old_buttons; member in struct:screen 1175 int _drv_mouse_new_buttons; member in struct:screen 1181 int (*_resize)(NCURSES_SP_DCLx int y, int x); member in struct:screen 1182 int (*_ungetch)(SCREEN *, int); member in struct:screen 1189 struct panelhook _panelHook; member in struct:screen 1191 bool _sig_winch; member in struct:screen 1192 SCREEN *_next_screen; member in struct:screen 1195 unsigned long *oldhash, *newhash; member in struct:screen 1196 HASHMAP *hashtab; member in struct:screen 1197 int hashtab_len; member in struct:screen 1198 int *_oldnum_list; member in struct:screen 1199 int _oldnum_size; member in struct:screen 1201 NCURSES_SP_OUTC _outch; /* output handler if not putc */ member in struct:screen 1203 int _legacy_coding; /* see use_legacy_coding() */ member in struct:screen 1206 char _ttytype[NAMESIZE]; member in struct:screen 1207 int _ESCDELAY; member in struct:screen 1208 int _TABSIZE; member in struct:screen 1209 int _LINES; member in struct:screen 1210 int _COLS; member in struct:screen 1212 long _outchars; member in struct:screen 1213 const char *_tputs_trace; member in struct:screen 1218 char tracechr_buf[40]; member in struct:screen 1219 char tracemse_buf[TRACEMSE_MAX]; member in struct:screen 1222 WINDOWLIST* _windowlist; member in struct:screen 1223 #define WindowList macro 1225 NCURSES_OUTC jump; member in struct:screen 1227 ripoff_t rippedoff[N_RIPS]; member in struct:screen 1228 ripoff_t *rsp; member in struct:screen 1237 bool _screen_acs_fix; member in struct:screen 1238 bool _screen_unicode; member in struct:screen 1241 bool _use_tioctl; member in struct:screen 1248 WINDOWLIST *next; variable 1249 SCREEN *screen; /* screen containing the window */ variable 1250 WINDOW win; /* WINDOW_EXT() needs to account for offset */ variable 1252 char addch_work[(MB_LEN_MAX * 9) + 1]; variable 1253 unsigned addch_used; /* number of bytes in addch_work[] */ variable 1254 int addch_x; /* x-position for addch_work[] */ variable 1255 int addch_y; /* y-position for addch_work[] */ variable 1259 #define WINDOW_EXT macro 1261 #define SP_PRE_INIT macro 1277 #define UCHAR_MAX macro 1281 #define is7bits macro 1284 #define is8bits macro 1287 #define min macro 1291 #define max macro 1296 #define STDIN_FILENO macro 1300 #define STDOUT_FILENO macro 1304 #define STDERR_FILENO macro 1308 #define EXIT_SUCCESS macro 1312 #define EXIT_FAILURE macro 1316 #define R_OK macro 1319 #define W_OK macro 1322 #define X_OK macro 1325 #define F_OK macro 1333 #define O_BINARY macro 1338 #define COUNT_OUTCHARS macro 1340 #define COUNT_OUTCHARS macro 1343 #define COUNT_OUTCHARS macro 1346 #define RESET_OUTCHARS macro 1348 #define UChar macro 1349 #define UShort macro 1350 #define ChCharOf macro 1351 #define ChAttrOf macro 1354 #define MB_LEN_MAX macro 1358 #define isEILSEQ macro 1360 #define init_mb macro 1363 #define NulColor macro 1365 #define NulColor macro 1368 #define NulChar macro 1369 #define CharOf macro 1370 #define AttrOf macro 1372 #define AddAttr macro 1373 #define RemAttr macro 1374 #define SetAttr macro 1376 #define NewChar2 macro 1377 #define NewChar macro 1380 #define CharEq macro 1388 #define CharEq macro 1391 #define SetChar macro 1398 #define CHREF macro 1399 #define CHDEREF macro 1400 #define ARG_CH_T macro 1401 #define CARG_CH_T macro 1402 #define PUTC_DATA macro 1404 #define PUTC_INIT macro 1405 #define PUTC macro 1431 #define BLANK macro 1432 #define ZEROS macro 1433 #define ISBLANK macro 1442 #define WidecExt macro 1443 #define isWidecBase macro 1444 #define isWidecExt macro 1445 #define SetWidecExt macro 1448 #define if_WIDEC macro 1449 #define Charable macro 1455 #define L macro 1457 #define CharOf macro 1458 #define AttrOf macro 1459 #define AddAttr macro 1460 #define RemAttr macro 1461 #define SetAttr macro 1462 #define NewChar macro 1463 #define NewChar2 macro 1464 #define CharEq macro 1465 #define SetChar macro 1466 #define CHREF macro 1467 #define CHDEREF macro 1468 #define ARG_CH_T macro 1469 #define CARG_CH_T macro 1470 #define PUTC_DATA macro 1471 #define PUTC macro 1473 #define BLANK macro 1474 #define ZEROS macro 1475 #define ISBLANK macro 1477 #define isWidecExt macro 1478 #define if_WIDEC macro 1480 #define L macro 1483 #define AttrOfD macro 1484 #define CharOfD macro 1485 #define SetChar2 macro 1487 #define BLANK_ATTR macro 1488 #define BLANK_TEXT macro 1490 #define CHANGED macro 1492 #define LEGALYX macro 1497 #define CHANGED_CELL macro 1505 #define CHANGED_RANGE macro 1513 #define CHANGED_TO_EOL macro 1519 #define SIZEOF macro 1521 #define FreeIfNeeded macro 1526 #define FreeAndNull macro 1534 #define TYPE_MALLOC macro 1539 #define TYPE_REALLOC macro 1548 # define OFLAGS_TABS macro 1551 # define OFLAGS_TABS macro 1554 # define OFLAGS_TABS macro 1556 # define OFLAGS_TABS macro 1564 #define each_screen macro 1565 #define each_window macro 1566 #define each_ripoff macro 1573 #define T_CALLED macro 1574 #define T_CREATE macro 1575 #define T_RETURN macro 1580 #define TPUTS_TRACE macro 1582 #define TPUTS_TRACE macro 1585 #define START_TRACE macro 1597 #define USE_TRACEF macro 1601 #define USE_TRACEF macro 1602 #define _nc_locked_tracef macro 1605 #define TR macro 1606 #define T macro 1607 #define TRACE_RETURN macro 1608 #define TRACE_RETURN2 macro 1609 #define TRACE_RETURN_SP macro 1611 #define NonNull macro 1613 #define returnAttr macro 1614 #define returnBits macro 1615 #define returnBool macro 1616 #define returnCPtr macro 1617 #define returnCVoidPtr macro 1618 #define returnChar macro 1619 #define returnChtype macro 1620 #define returnCode macro 1621 #define returnIntAttr macro 1622 #define returnMMask macro 1623 #define returnPtr macro 1624 #define returnSP macro 1625 #define returnVoid macro 1626 #define returnVoidPtr macro 1627 #define returnWin macro 1633 extern NCURSES_EXPORT(attr_t) _nc_retrace_attr_t (attr_t); variable 1635 extern NCURSES_EXPORT(char *) _nc_trace_ttymode(TTY *tty); variable 1637 extern NCURSES_EXPORT(chtype) _nc_retrace_chtype (chtype); variable 1642 extern NCURSES_EXPORT(int) _nc_retrace_int_attr_t (attr_t); variable 1651 #define _nc_outchars macro 1652 #define _nc_tputs_trace macro 1672 #define START_TRACE macro 1674 #define T macro 1675 #define TR macro 1676 #define TPUTS_TRACE macro 1678 #define returnAttr macro 1679 #define returnBits macro 1680 #define returnBool macro 1681 #define returnCPtr macro 1682 #define returnCVoidPtr macro 1683 #define returnChar macro 1684 #define returnChtype macro 1685 #define returnCode macro 1686 #define returnIntAttr macro 1687 #define returnMMask macro 1688 #define returnPtr macro 1689 #define returnSP macro 1690 #define returnVoid macro 1691 #define returnVoidPtr macro 1692 #define returnWin macro 1700 #define IGNORE_RC macro 1702 #define IGNORE_RC macro 1708 #define TGETENT_YES macro 1709 #define TGETENT_NO macro 1710 #define TGETENT_ERR macro 1715 #define EMPTY_MODULE macro 1719 #define ALL_BUT_COLOR macro 1720 #define NONBLANK_ATTR macro 1721 #define TPARM_ATTR macro 1722 #define XMC_CONFLICT macro 1723 #define XMC_CHANGES macro 1725 #define toggle_attr_on macro 1734 #define toggle_attr_off macro 1742 #define DelCharCost macro 1749 #define InsCharCost macro 1759 #define UpdateAttrs macro 1772 #define UpdateAttrs macro 1781 #define EVENTLIST_0th macro 1782 #define EVENTLIST_1st macro 1783 #define EVENTLIST_2nd macro 1784 #define TWAIT_MASK macro 1786 #define EVENTLIST_0th macro 1787 #define EVENTLIST_1st macro 1788 #define EVENTLIST_2nd macro 1789 #define TWAIT_MASK macro 1794 #undef toggle_attr_on macro 1795 #define toggle_attr_on macro 1798 #undef toggle_attr_off macro 1799 #define toggle_attr_off macro 1802 #undef DelCharCost macro 1803 #define DelCharCost macro 1805 #undef InsCharCost macro 1806 #define InsCharCost macro 1811 #undef UpdateAttrs macro 1812 #define UpdateAttrs macro 1823 extern NCURSES_EXPORT(void) _nc_UpdateAttrs (CARG_CH_T); variable 1833 #define set_escdelay macro 1837 #define getcwd macro 1843 extern NCURSES_EXPORT(int) _nc_to_char(wint_t); variable 1849 short nte_name; /* offset of name to hash on */ member in struct:__anon4659 1850 int nte_type; /* BOOLEAN, NUMBER or STRING */ member in struct:__anon4659 1851 short nte_index; /* index of associated variable in its array */ member in struct:__anon4659 1852 short nte_link; /* index in table of next hash, or -1 */ member in struct:__anon4659 1853 } name_table_data; typedef in typeref:struct:__anon4659 1857 short from; member in struct:__anon4660 1858 short to; member in struct:__anon4660 1859 short source; member in struct:__anon4660 1860 } alias_table_data; typedef in typeref:struct:__anon4660 1864 extern NCURSES_EXPORT(void) _nc_do_xmc_glitch (attr_t); variable 1896 #define INFINITY macro 1914 #define INFINITY macro 1915 #define BAUDBYTE macro 1928 #define ret_error macro 1936 #define ret_error1 macro 1938 #define ret_error0 macro 1950 #define _nc_handle_sigwinch macro 1959 char *s_head; /* beginning of the string (may be null) */ member in struct:__anon4661 1960 char *s_tail; /* end of the string (may be null) */ member in struct:__anon4661 1961 size_t s_size; /* current remaining size available */ member in struct:__anon4661 1962 size_t s_init; /* total size available */ member in struct:__anon4661 1963 } string_desc; typedef in typeref:struct:__anon4661 1973 #define strstr macro 2060 #define _nc_resize_margins macro 2066 #define wgetch_events macro 2067 #define wgetnstr_events macro 2081 #define wctomb macro 2082 #define wcrtomb macro 2085 #define mbtowc macro 2088 #define mblen macro 2093 #define reset_mbytes macro 2094 #define count_mbytes macro 2095 #define check_mbytes macro 2097 #define state_unused macro 2099 #define reset_mbytes macro 2100 #define count_mbytes macro 2101 #define check_mbytes macro 2119 #define USE_SETBUF_0 macro 2121 #define NC_BUFFERED macro 2123 #define NC_OUTPUT macro 2129 #define _nc_alloc_screen_sp macro 2132 #define SP macro 2136 #define CURRENT_SCREEN macro 2140 #define CURRENT_SCREEN macro 2141 #define _nc_alloc_screen macro 2142 #define _nc_set_screen macro 2146 #define CURRENT_SCREEN_PRE macro 2148 #define CURRENT_SCREEN_PRE macro 2156 #define screen_lines macro 2157 #define screen_columns macro 2165 #define MAX_SKEY_OLD macro 2166 #define MAX_SKEY_LEN_OLD macro 2167 #define MAX_SKEY_PC macro 2168 #define MAX_SKEY_LEN_PC macro 2171 #define SLK_STDFMT macro 2173 #define SLK_LINES macro 2175 #define MAX_SKEY macro 2176 #define MAX_SKEY_LEN macro 2181 #define MSG_NO_MEMORY macro 2182 #define MSG_NO_INPUTS macro 2188 #define TW_NONE macro 2189 #define TW_INPUT macro 2190 #define TW_MOUSE macro 2191 #define TW_ANY macro 2192 #define TW_EVENT macro 2194 #define SetSafeOutcWrapper macro 2205 typedef void* TERM_HANDLE; typedef 2207 typedef struct _termInfo struct 2209 bool caninit; member in struct:_termInfo 2211 bool hascolor; member in struct:_termInfo 2212 bool initcolor; member in struct:_termInfo 2213 bool canchange; member in struct:_termInfo 2215 int tabsize; member in struct:_termInfo 2217 int maxcolors; member in struct:_termInfo 2218 int maxpairs; member in struct:_termInfo 2219 int nocolorvideo; member in struct:_termInfo 2221 int numbuttons; member in struct:_termInfo 2222 int numlabels; member in struct:_termInfo 2223 int labelwidth; member in struct:_termInfo 2224 int labelheight; member in struct:_termInfo 2226 const color_t* defaultPalette; member in struct:_termInfo 2227 } TerminalInfo; typedef in typeref:struct:_termInfo 2229 typedef struct term_driver { struct 2230 bool isTerminfo; member in struct:term_driver 2231 bool (*CanHandle)(struct DriverTCB*, const char*, int*); member in struct:term_driver 2232 void (*init)(struct DriverTCB*); member in struct:term_driver 2233 void (*release)(struct DriverTCB*); member in struct:term_driver 2234 int (*size)(struct DriverTCB*, int* Line, int *Cols); member in struct:term_driver 2235 int (*sgmode)(struct DriverTCB*, int setFlag, TTY*); member in struct:term_driver 2236 chtype (*conattr)(struct DriverTCB*); member in struct:term_driver 2237 int (*hwcur)(struct DriverTCB*, int yold, int xold, int y, int x); member in struct:term_driver 2238 int (*mode)(struct DriverTCB*, int progFlag, int defFlag); member in struct:term_driver 2239 bool (*rescol)(struct DriverTCB*); member in struct:term_driver 2240 bool (*rescolors)(struct DriverTCB*); member in struct:term_driver 2241 void (*color)(struct DriverTCB*, int fore, int color, int(*)(SCREEN*, int)); member in struct:term_driver 2242 int (*doBeepOrFlash)(struct DriverTCB*, int); member in struct:term_driver 2243 void (*initpair)(struct DriverTCB*, int, int, int); member in struct:term_driver 2244 void (*initcolor)(struct DriverTCB*, int, int, int, int); member in struct:term_driver 2245 void (*docolor)(struct DriverTCB*, int, int, int, int(*)(SCREEN*, int)); member in struct:term_driver 2246 void (*initmouse)(struct DriverTCB*); member in struct:term_driver 2247 int (*testmouse)(struct DriverTCB*, int EVENTLIST_2nd(_nc_eventlist*)); member in struct:term_driver 2248 void (*setfilter)(struct DriverTCB*); member in struct:term_driver 2249 void (*hwlabel)(struct DriverTCB*, int, char*); member in struct:term_driver 2250 void (*hwlabelOnOff)(struct DriverTCB*, int); member in struct:term_driver 2251 int (*update)(struct DriverTCB*); member in struct:term_driver 2252 int (*defaultcolors)(struct DriverTCB*, int, int); member in struct:term_driver 2253 int (*print)(struct DriverTCB*, char*, int); member in struct:term_driver 2254 int (*getsize)(struct DriverTCB*, int*, int*); member in struct:term_driver 2255 int (*setsize)(struct DriverTCB*, int, int); member in struct:term_driver 2256 void (*initacs)(struct DriverTCB*, chtype*, chtype*); member in struct:term_driver 2257 void (*scinit)(SCREEN *); member in struct:term_driver 2258 void (*scexit)(SCREEN *); member in struct:term_driver 2259 int (*twait)(struct DriverTCB*, int, int, int* EVENTLIST_2nd(_nc_eventlist*)); member in struct:term_driver 2260 int (*read)(struct DriverTCB*, int*); member in struct:term_driver 2261 int (*nap)(struct DriverTCB*, int); member in struct:term_driver 2262 int (*kpad)(struct DriverTCB*, int); member in struct:term_driver 2263 int (*kyOk)(struct DriverTCB*, int, int); member in struct:term_driver 2264 bool (*kyExist)(struct DriverTCB*, int); member in struct:term_driver 2265 } TERM_DRIVER; typedef in typeref:struct:term_driver 2267 typedef struct DriverTCB struct 2269 TERMINAL term; /* needs to be the first Element !!! */ member in struct:DriverTCB 2270 TERM_HANDLE inp; /* The input handle of the Terminal */ member in struct:DriverTCB 2271 TERM_HANDLE out; /* The output handle of the Terminal in shell mode */ member in struct:DriverTCB 2272 TERM_HANDLE hdl; /* The output handle of the Terminal in prog mode */ member in struct:DriverTCB 2273 TERM_DRIVER* drv; /* The driver for that Terminal */ member in struct:DriverTCB 2274 SCREEN* csp; /* The screen that owns that Terminal */ member in struct:DriverTCB 2275 TerminalInfo info; /* Driver independent core capabilities of the Terminal */ member in struct:DriverTCB 2276 void* prop; /* Driver dependent property storage to be used by the Driver */ member in struct:DriverTCB 2277 long magic; member in struct:DriverTCB 2278 } TERMINAL_CONTROL_BLOCK; typedef in typeref:struct:DriverTCB 2280 #define NCDRV_MAGIC macro 2281 #define NCDRV_TINFO macro 2282 #define NCDRV_WINCONSOLE macro 2284 #define TCBOf macro 2285 #define InfoOf macro 2286 #define CallDriver macro 2287 #define CallDriver_1 macro 2288 #define CallDriver_2 macro 2289 #define CallDriver_3 macro 2290 #define CallDriver_4 macro 2304 #define TINFO_HAS_KEY macro 2305 #define TINFO_DOUPDATE macro 2306 #define TINFO_MVCUR macro 2311 #define TINFO_HAS_KEY macro 2312 #define TINFO_DOUPDATE macro 2313 #define TINFO_MVCUR macro 2322 #define TINFO_GET_SIZE macro 2324 #define TINFO_SET_CURTERM macro 2326 #define TINFO_SETUP_TERM macro 2330 #define TINFO_GET_SIZE macro 2332 #define TINFO_SET_CURTERM macro 2334 #define TINFO_SETUP_TERM macro 2347 #define IsTermInfo macro 2348 #define HasTInfoTerminal macro 2350 #define IsTermInfo macro 2351 #define HasTInfoTerminal macro 2354 #define IsValidTIScreen macro 2423 extern NCURSES_EXPORT(void) _nc_cookie_init(SCREEN *sp); variable 2437 #define safe_keyname macro 2438 #define safe_unctrl macro 2439 #define safe_ungetch macro 2443 #define safe_keyname macro 2444 #define safe_unctrl macro 2445 #define safe_ungetch macro [all...] |
H A D | fifo_defs.h | 41 #define FIFO_DEFS_H macro 43 #define head macro 44 #define tail macro 46 #define peek macro 48 #define h_inc macro 55 #define h_dec macro 62 #define t_inc macro 69 #define t_dec macro 76 #define p_inc macro 82 #define cooked_key_in_fifo macro 83 #define raw_key_in_fifo macro 85 #undef HIDE_EINTR macro [all...] |
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | MKcaptab.awk | 29 function add_string(text) { function [all...] |
H A D | MKcodes.awk | 29 function large_item(value) { function 48 function small_item(value) { function 52 function print_strings(name,value) { function 60 function print_offsets(name,value) { function [all...] |
H A D | MKnames.awk | 29 function large_item(value) { function 48 function small_item(value) { function 52 function print_strings(name,value) { function 60 function print_offsets(name,value) { function [all...] |
H A D | access.c | 42 #define ROOT_UID macro 46 #define ROOT_UID macro 49 #define LOWERCASE macro 52 _nc_rootname(char *path) argument 54 char *result = _nc_basename(path); local 56 static char *temp; local 57 char *s; local 79 NCURSES_EXPORT(bool) function 83 #define is_pathname macro 95 _nc_pathlast(const char *path) argument 97 const char *test = strrchr(path, '/'); local 110 _nc_basename(char *path) argument 116 _nc_access(const char *path, int mode) argument 118 int result; local 126 char head[PATH_MAX]; local 127 char *leaf; local 147 NCURSES_EXPORT(bool) function 150 bool result = FALSE; local 151 struct stat sb; local 160 NCURSES_EXPORT(bool) function 163 bool result = FALSE; local 164 struct stat sb; local 179 _nc_env_access(void) function [all...] |
H A D | add_tries.c | 44 #define SET_TRY macro 45 #define CMP_TRY macro 48 _nc_add_to_try(TRIES ** tree, const char *str, unsigned code) argument 50 TRIES *ptr, *savedptr; local 51 unsigned const char *txt = (unsigned const char *) str; local 62 unsigned char cmp = *txt; local [all...] |
H A D | alloc_entry.c | 52 #define ABSENT_OFFSET macro 53 #define CANCELLED_OFFSET macro 55 #define MAX_STRTAB macro 57 static char *stringbuf; /* buffer for string capabilities */ variable 58 static size_t next_free; /* next free character in stringbuf */ variable 61 _nc_init_entry(TERMTYPE *const tp) argument 82 _nc_copy_entry(ENTRY * oldp) argument 84 ENTRY *newp = typeCalloc(ENTRY, 1); local 95 _nc_save_str(const char *const string) argument 97 char *result = 0; local 98 size_t old_next_free = next_free; local 99 size_t len = strlen(string) + 1; local 122 _nc_wrap_entry(ENTRY * const ep, bool copy_strings) argument 125 int offsets[MAX_ENTRY_SIZE / sizeof(short)]; local 126 int useoffsets[MAX_USES]; local 127 unsigned i, n; local 128 unsigned nuses = ep->nuses; local 129 TERMTYPE *tp = &(ep->tterm); local 136 for_each_string(i, tp) { function 193 size_t length = 0; local 194 size_t offset; local 221 _nc_merge_entry(TERMTYPE *const to, TERMTYPE *const from) argument 224 unsigned i; local 229 for_each_boolean(i, from) { function 231 int mergebool = from->Booleans[i]; local 240 for_each_number(i, from) { function 242 short mergenum = from->Numbers[i]; local 256 for_each_string(i, from) { function 258 char *mergestring = from->Strings[i]; local 270 _nc_alloc_entry_leaks(void) function [all...] |
H A D | alloc_ttype.c | 53 merge_names(char **dst, char **a, int na, char **b, int nb) argument 55 int n = 0; local 57 int cmp = strcmp(*a, *b); local 81 find_name(char **table, int length, char *name) argument 93 #define EXTEND_NUM macro 97 realign_data(TERMTYPE *to, char **ext_Names, int ext_Booleans, int ext_Numbers, int ext_Strings) argument 102 int n, m, base; local 103 int limit = (to->ext_Booleans + to->ext_Numbers + to->ext_Strings); local 154 _nc_first_ext_name(TERMTYPE *tp, int token_type) argument 156 unsigned first; local 179 _nc_last_ext_name(TERMTYPE *tp, int token_type) argument 181 unsigned last; local 202 _nc_find_ext_name(TERMTYPE *tp, char *name, int token_type) argument 204 unsigned j; local 205 unsigned first = _nc_first_ext_name(tp, token_type); local 206 unsigned last = _nc_last_ext_name(tp, token_type); local 221 _nc_ext_data_index(TERMTYPE *tp, int n, int token_type) argument 244 _nc_del_ext_name(TERMTYPE *tp, char *name, int token_type) argument 246 int j; local 247 int first, last; local 288 _nc_ins_ext_name(TERMTYPE *tp, char *name, int token_type) argument 290 unsigned first = _nc_first_ext_name(tp, token_type); local 291 unsigned last = _nc_last_ext_name(tp, token_type); local 292 unsigned total = NUM_EXT_NAMES(tp) + 1; local 293 unsigned j, k; local 296 int cmp = strcmp(name, tp->ext_Names[j]); local 343 adjust_cancels(TERMTYPE *to, TERMTYPE *from) argument 345 int first = to->ext_Booleans + to->ext_Numbers; local 346 int last = first + to->ext_Strings; local 347 int j, k; local 350 char *name = to->ext_Names[j]; local 351 int j_str = to->num_Strings - first - to->ext_Strings; local 388 _nc_align_termtype(TERMTYPE *to, TERMTYPE *from) argument 390 int na = (int) NUM_EXT_NAMES(to); local 391 int nb = (int) NUM_EXT_NAMES(from); local 392 int n; local 393 bool same; local 394 char **ext_Names; local 395 int ext_Booleans, ext_Numbers, ext_Strings; local 396 bool used_ext_Names = FALSE; local 477 _nc_copy_termtype(TERMTYPE *dst, const TERMTYPE *src) argument 480 unsigned i; local [all...] |
H A D | captoinfo.c | 98 #define MAX_PUSHED macro 100 static int stack[MAX_PUSHED]; /* the stack */ variable 101 static int stackptr; /* the next empty place on the stack */ variable 102 static int onstack; /* the top of stack */ variable 103 static int seenm; /* seen a %m */ variable 104 static int seenn; /* seen a %n */ variable 105 static int seenr; /* seen a %r */ variable 106 static int param; /* current parameter */ variable 107 static char *dp; /* pointer to end of the converted string */ variable 109 static char *my_string; variable 110 static size_t my_length; variable 113 init_string(void) function 124 save_string(char *d, const char *const s) argument 126 size_t have = (size_t) (d - my_string); local 127 size_t need = have + strlen(s) + 2; local 139 save_char(char *s, int c) argument 141 static char temp[2]; local 147 push(void) function 157 pop(void) function 171 cvtchar(register const char *sp) argument 174 unsigned char c = 0; local 175 int len; local 232 getparm(int parm, int n) argument 280 _nc_captoinfo(const char *cap, const char *s, int const parameterized) argument 282 const char *capstart; local 358 int l; local 500 bcd_expression(const char *str) argument 503 static char fmt[] = "%%p%c%%{10}%%/%%{16}%%*%%p%c%%{10}%%m%%+"; local 504 int len = 0; local 505 char ch1, ch2; local 514 char buffer[80]; local 515 int tst; local 526 save_tc_char(char *bufptr, int c1) argument 528 char temp[80]; local 548 save_tc_inequality(char *bufptr, int c1, int c2) argument 579 _nc_infotocap(const char *cap GCC_UNUSED, const char *str, int const parameterized) argument 581 int seenone = 0, seentwo = 0, saw_m = 0, saw_n = 0; local 582 const char *padding; local 583 const char *trimmed = 0; local 584 int in0, in1, in2; local 585 char ch1 = 0, ch2 = 0; local 586 char *bufptr = init_string(); local 587 char octal[4]; local 588 int len; local 589 bool syntax_error = FALSE; local 607 int c1, c2; local 608 char *cp = 0; local 628 int xx1, xx2; local 634 int pad = 0; local 863 int curr_line; variable 866 main(int argc, char *argv[]) argument 868 int c, tc = FALSE; local 879 char buf[BUFSIZ]; local 888 char *cp = _nc_infotocap("to termcap", buf, 1); local 902 _nc_captoinfo_leaks(void) function [all...] |
H A D | comp_error.c | 50 #define SourceName macro 51 #define TermType macro 54 _nc_get_source(void) function 60 _nc_set_source(const char *const name) argument 67 _nc_set_type(const char *const name) argument 79 _nc_get_type(char *name) argument 92 where_is_problem(void) function 106 _nc_warning(const char *const fmt,...) argument 108 va_list argp; local 121 _nc_err_abort(const char *const fmt,...) argument 123 va_list argp; local 134 _nc_syserr_abort(const char *const fmt,...) argument 136 va_list argp; local 158 _nc_comp_error_leaks(void) function [all...] |
H A D | comp_expand.c | 41 trailing_spaces(const char *src) argument 49 #define REALCTL macro 50 #define REALPRINT macro 52 #define P_LIMIT macro 55 _nc_tic_expand(const char *srcp, bool tic_format, int numbers) argument 57 static char *buffer; local 58 static size_t length; local 60 int bufp; local 61 const char *str = VALID_STRING(srcp) ? srcp : "\\0\\0"; local 62 bool islong = (strlen(str) > 3); local 63 size_t need = (2 + strlen(str)) * 4; local 64 int ch; local 113 char *dst = 0; local 114 long value = strtol(str + 1, &dst, 0); local 180 #define UnCtl macro [all...] |
H A D | comp_hash.c | 41 #define USE_TERMLIB macro 55 _nc_find_entry(const char *string, const HashValue * hash_table) argument 58 bool termcap = (hash_table != _nc_get_hash_table(FALSE)); local 59 const HashData *data = _nc_get_hash_info(termcap); local 60 int hashvalue; local 61 struct name_table_entry const *ptr = 0; local 62 struct name_table_entry const *real_table; local 91 _nc_find_type_entry(const char *string, int type, bool termcap) argument 95 struct name_table_entry const *ptr = NULL; local 96 const HashData *data = _nc_get_hash_info(termcap); local 97 int hashvalue = data->hash_of(string); local 100 const struct name_table_entry *const table = _nc_get_table(termcap); local [all...] |
H A D | comp_parse.c | 53 NCURSES_IMPEXP void NCURSES_API(*_nc_check_termtype2) (TERMTYPE *, bool) = sanity_check2; variable 57 NCURSES_IMPEXP void NCURSES_API(*_nc_check_termtype) (TERMTYPE *) = sanity_check; variable 62 enqueue(ENTRY * ep) argument 65 ENTRY *newp = _nc_copy_entry(ep); local 79 force_bar(char *dst, char *src) argument 82 size_t len = strlen(src); local 91 #define ForceBar macro 95 skip_index(char *name) argument 97 char *bar = strchr(name, '|'); local 107 check_collisions(char *n1, char *n2, int counter) argument 109 char *pstart, *qstart, *pend, *qend; local 110 char nc1[MAX_NAME_SIZE + 2]; local 111 char nc2[MAX_NAME_SIZE + 2]; local 139 next_name(char *name) argument 147 name_ending(char *name) argument 163 remove_collision(char *n1, char *n2) argument 165 char *p2 = n2; local 166 char *pstart, *qstart, *pend, *qend; local 167 bool removed = FALSE; local 199 NCURSES_EXPORT(bool) function 212 _nc_read_entry_source(FILE *fp, char *buf, int literal, bool silent, bool(*hook) (ENTRY *)) argument 217 ENTRY thisentry; local 218 bool oldsuppress = _nc_suppress_warnings; local 219 int immediate = 0; local 271 _nc_resolve_uses2(bool fullresolve, bool literal) argument 274 ENTRY *qp, *rp, *lastread = 0; local 275 bool keepgoing; local 276 unsigned i; local 277 int unresolved, total_unresolved, multiples; local 285 for_entry_list(qp) { function 286 int matchcount = 0; local 288 for_entry_list(rp) { function 314 for_entry_list(qp) { function 317 bool foundit; local 318 char *child = _nc_first_name(qp->tterm.term_names); local 319 char *lookfor = qp->uses[i].name; local 320 long lookline = qp->uses[i].line; local 327 for_entry_list(rp) { function 340 TERMTYPE thisterm; local 341 char filename[PATH_MAX]; local 385 TERMTYPE merged; local 389 for_entry_list(qp) { function 465 for_entry_list(qp) { function 473 SCREEN *save_SP = SP; local 474 SCREEN fake_sp; local 475 TERMINAL fake_tm; local 476 TERMINAL *save_tm = cur_term; local 505 _nc_resolve_uses(bool fullresolve) argument 516 #undef CUR macro 517 #define CUR macro 520 fixup_acsc(TERMTYPE *tp, int literal) argument 531 sanity_check2(TERMTYPE *tp, bool literal) argument 535 bool terminal_entry = !strchr(tp->term_names, '+'); local 589 sanity_check(TERMTYPE *tp) argument 596 _nc_leaks_tic(void) function 609 _nc_free_tic(int code) argument [all...] |
H A D | comp_scan.c | 61 #define MAXCAPLEN macro 63 #define iswhite macro 83 static bool first_column; /* See 'next_char()' below */ variable 84 static bool had_newline; variable 85 static char separator; /* capability separator */ variable 86 static int pushtype; /* type of pushback token */ variable 87 static char *pushname; variable 99 #define LEXBUFSIZ macro 101 static char *bufptr; /* otherwise, the input buffer pointer */ variable 102 static char *bufstart; /* start of buffer so we can compute offsets */ variable 103 static FILE *yyin; /* scanner's input file descriptor */ variable 114 _nc_reset_input(FILE *fp, char *buf) argument 133 last_char(int from_end) argument 135 size_t len = strlen(bufptr); local 136 int result = 0; local 163 next_char(void) function 165 static char *result; local 166 static size_t allocated; local 167 int the_char; local 194 size_t used; local 195 size_t len; local 268 push_back(int c) argument 278 stream_pos(void) function 285 end_of_stream(void) function 294 eat_escaped_newline(int ch) argument 302 #define TOK_BUF_SIZE macro 304 #define OkToAdd macro 307 #define AddCh macro 311 static char *tok_buf; variable 347 _nc_get_token(bool silent) argument 349 static const char terminfo_punct[] = "@%&*!#"; local 351 char *after_name; /* after primary name */ local 352 char *after_list; /* after primary and alias list */ local 353 char *numchk; local 354 char *tok_ptr; local 355 char *s; local 356 char numbuf[80]; local 357 int ch, c0, c1; local 358 int dot_flag = FALSE; local 359 int type; local 360 long number; local 361 long token_start; local 362 unsigned found; local 364 int old_line; local 365 int old_col; local 369 int retval = pushtype; local 497 bool capability = FALSE; local 513 char *name = s; local 787 _nc_trans_string(char *ptr, char *last) argument 789 int count = 0; local 790 int number = 0; local 791 int i, c; local 792 int last_ch = '\\0'; local 793 bool ignored = FALSE; local 794 bool long_warning = FALSE; local 825 bool strict_bsd = ((_nc_syntax == SYN_TERMCAP) && _nc_strict_bsd); local 831 #define isoctal macro 971 _nc_push_token(int tokclass) argument 995 _nc_panic_mode(char ch) argument 997 int c; local 1010 _nc_comp_scan_leaks(void) function [all...] |
H A D | db_iterator.c | 48 #define HaveTicDirectory macro 49 #define KeepTicDirectory macro 50 #define TicDirectory macro 51 #define my_blob macro 52 #define my_list macro 53 #define my_size macro 54 #define my_time macro 55 #define my_vars macro 58 add_to_blob(const char *text, size_t limit) argument 63 char *last = my_blob + strlen(my_blob); local 71 check_existence(const char *name, struct stat *sb) argument 73 bool result = FALSE; local 81 char temp[PATH_MAX]; local 96 update_getenv(const char *name, DBDIRS which) argument 98 bool result = FALSE; local 101 char *value; local 126 cache_getenv(const char *name, DBDIRS which) argument 128 char *result = 0; local 149 cache_expired(void) function 151 bool result = FALSE; local 152 time_t now = time((time_t *) 0); local 157 DBDIRS n; local 170 free_cache(void) function 181 _nc_tic_dir(const char *path) argument 190 char *envp; local 205 _nc_keep_tic_dir(const char *path) argument 215 _nc_last_db(void) function 228 _nc_next_db(DBDIRS * state, int *offset) argument 230 const char *result; local 248 _nc_first_db(DBDIRS * state, int *offset) argument 250 bool cache_has_expired = FALSE; local 260 size_t blobsize = 0; local 261 const char *values[dbdLAST]; local 262 struct stat *my_stat; local 263 int j, k; local 367 bool found = check_existence(my_list[j], &my_stat[j]); local 399 _nc_db_iterator_leaks(void) function 401 DBDIRS which; local [all...] |
H A D | doalloc.c | 45 _nc_doalloc(void *oldp, size_t amount) argument 47 void *newp; local [all...] |
H A D | entries.c | 67 _nc_free_entry(ENTRY * headp, TERMTYPE *tterm) argument 70 ENTRY *ep; local 78 _nc_free_entries(ENTRY * headp) argument 89 _nc_delink_entry(ENTRY * headp, TERMTYPE *tterm) argument 92 ENTRY *ep, *last; local 115 _nc_leaks_tinfo(void) function 118 char *s; local 157 _nc_free_tinfo(int code) argument [all...] |
H A D | free_ttype.c | 48 _nc_free_termtype(TERMTYPE *ptr) argument 68 use_extended_names(bool flag) argument 70 int oldflag = _nc_user_definable; local [all...] |