#include <curses.h> #include <term.h> chtype acs_map[]; NCURSES_CONST char * const * boolcodes; NCURSES_CONST char * const * boolfnames; NCURSES_CONST char * const * boolnames; TERMINAL * cur_term; NCURSES_CONST char * const * numcodes; NCURSES_CONST char * const * numfnames; NCURSES_CONST char * const * numnames; NCURSES_CONST char * const * strcodes; NCURSES_CONST char * const * strfnames; NCURSES_CONST char * const * strnames; char ttytype[];
Depending on the configuration, these may be actual variables, or macros (see curs_threads(3X) ) which provide read-only access to curses’s state. In either case, applications should treat them as read-only to avoid confusing the library.
The encoding of the information in this array has changed periodically. Application developers need only know that it is used for the "ACS_" constants in <curses.h>.
The comparable data for the wide-character library is a private variable.
It is possible to save a value of cur_term for subsequent use as a parameter to set_term, for switching between screens. Alternatively, one can save the return value from newterm or setupterm to reuse in set_term.
The long terminfo capability names use a "l" (ell) in their names: boolfnames numfnames strfnames
These are the short names for terminfo capabilities: boolnames, numnames, and strnames.
These are the corresponding names used for termcap descriptions: boolcodes, numcodes, and strcodes.
Other implementations may have comparable variables. Some implementations provide the variables in their libraries, but omit them from the header files.