Home : Computers : Linux : Man Pages : term_variables


       terminfo global variables


       #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[];


       This  page  summarizes  variables provided by the curses library's low-
       level terminfo interface.  A more complete description is given in  the
       curs_terminfo(3X) manual page.

       Depending  on  the  configuration,  these  may  be actual variables, or
       macros (see curs_threads(3X)) which provide read-only access  to  curs-
       es's state.  In either case, applications should treat them as read-on-
       ly to avoid confusing the library.

   Alternate Character Set Mapping
       After initializing the curses or terminfo interfaces, the acs_map array
       holds  information  used to translate cells with the A_ALTCHARSET video
       attribute into line-drawing characters.

       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  vari-

   Current Terminal Data
       After initializing the curses or terminfo interfaces, the cur_term con-
       tains data describing the current terminal.  This variable is also  set
       as a side-effect of set_term(3X) and delscreen(3X).

       It  is possible to save a value of cur_term for subsequent use as a pa-
       rameter to set_term, for switching between screens.  Alternatively, one
       can  save  the  return  value  from  newterm  or  setupterm to reuse in

   Terminfo Names
   Terminal Type
       On initialization of  the  curses  or  terminfo  interfaces,  setupterm
       copies the terminal name to the array ttytype.


       The  low-level  terminfo  interface is initialized using setupterm(3X).
       The upper-level curses interface uses the low-level terminfo interface,


       X/Open Curses does not describe any of these except for cur_term.  (The
       inclusion of cur_term appears to be an oversight, since other  compara-
       ble low-level information is omitted by X/Open).

       Other  implementations may have comparable variables.  Some implementa-
       tions provide the variables in their libraries, but omit them from  the
       header files.


       curses(3X),  curs_terminfo(3X), curs_threads(3X), terminfo(3X), termin-

Subscribe to us on YouTube