X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fhtml%2Fman%2Fterm_variables.3x.html;h=799b0a0fcb116f50b0409b1aba90642412ef27bd;hb=59c1a9740d123db3cecafe76e18f7848081a670b;hp=931d95fc47945f410ad3d2590236063905a03904;hpb=b0b1980be11bba618d84beb8b30ac94e2c820602;p=ncurses.git diff --git a/doc/html/man/term_variables.3x.html b/doc/html/man/term_variables.3x.html index 931d95fc..799b0a0f 100644 --- a/doc/html/man/term_variables.3x.html +++ b/doc/html/man/term_variables.3x.html @@ -1,7 +1,6 @@ - +
+ +- term_variables(3x) term_variables(3x) --
+
SP, acs_map, boolcodes, boolfnames, boolnames, cur_term, numcodes, numfnames, numnames, strcodes, strfnames, strnames, ttytype - curses terminfo global variables --
+
#include <curses.h> #include <term.h> chtype acs_map[]; + + SCREEN * SP; + + TERMINAL * cur_term; + + char ttytype[]; + 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 li- brary's low-level terminfo interface. A more complete de- scription is given in the curs_terminfo(3x) manual page. @@ -83,7 +87,8 @@ plications should treat them as read-only to avoid confus- ing 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 @@ -96,7 +101,8 @@ The comparable data for the wide-character library is a private variable. - Current Terminal Data + +
After initializing the curses or terminfo interfaces, the cur_term contains data describing the current terminal. This variable is also set as a side-effect of curs_initscr(3x) @@ -107,36 +113,48 @@ screens. Alternatively, one can save the return value from newterm or setupterm to reuse in set_term. - Terminfo Names + +
The tic(1m) and infocmp(1m) programs use lookup tables for the long and short names of terminfo capabilities, as well as the corresponding names for termcap capabilities. - These are available to other applications, though the - hash-tables are not available. + These are available to other applications, although the + hash-tables used by the terminfo and termcap functions are + not available. - The long terminfo capability names use a "l" (ell) in - their names: boolfnames numfnames strfnames + The long terminfo capability names use a "l" (ell) in + their names: boolfnames, numfnames, and strfnames. - These are the short names for terminfo capabilities: bool- - names, numnames, and strnames. + These are the short names for terminfo capabilities: bool- + names, numnames, and strnames. - These are the corresponding names used for termcap de- - scriptions: boolcodes, numcodes, and strcodes. + These are the corresponding names used for termcap de- + scriptions: boolcodes, numcodes, and strcodes. - Terminal Type - On initialization of the curses or terminfo interfaces, + +
+ On initialization of the curses or terminfo interfaces, setupterm copies the terminal name to the array ttytype. --
+
+ In addition to the variables, <term.h> also defines a sym- + bol for each terminfo capability long name. These are in + terms of the symbol CUR, which is defined + + #define CUR cur_term->type. + + These symbols provide a faster method of accessing termin- + fo capabilities than using tigetstr(3x), etc. + + +
The low-level terminfo interface is initialized using curs_terminfo(3x). The upper-level curses interface uses the low-level terminfo interface, internally. --
+
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 comparable low-level information is @@ -146,9 +164,13 @@ implementations provide the variables in their libraries, but omit them from the header files. + All implementations which provide terminfo interfaces add + definitions as described in the Terminfo Names section. + Most, but not all, base the definition upon the cur_term + variable. --
+ +
curses(3x), curs_terminfo(3x), curs_threads(3x), terminfo(5). @@ -156,7 +178,23 @@ term_variables(3x)-