term_variables - Online Linux Manual PageSection : 3X
Updated :

NAMESP, acs_map, boolcodes, boolfnames, boolnames, cur_term, numcodes, numfnames, numnames, strcodes, strfnames, strnames, ttytypecurses terminfo global variables

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

DESCRIPTIONThis 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 curses's state. In either case, applications should treat them as read-only to avoid confusing the library.

Alternate Character Set MappingAfter 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 variable.

Current Terminal DataAfter 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 set_term(3X) and delscreen(3X). 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(3X) to reuse in set_term.

Terminfo NamesThe tic(1) and infocmp(1) 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, 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, and 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.

Terminal TypeA terminal description begins with one or more terminal names separated by | (vertical bars). On initialization of the curses or terminfo interfaces, setupterm(3X) copies the terminal names to the array ttytype.

Terminfo NamesIn addition to the variables, <term.h> also defines a symbol for each terminfo capability long name. These are in terms of the symbol CUR, which is defined #define CUR ((TERMTYPE *)(cur_term))->These symbols provide a faster method of accessing terminfo capabilities than using tigetstr(3X), etc. The actual definition of CUR depends upon the implementation, but each terminfo library provides these long names defined to point into the current terminal description loaded into memory.

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

PORTABILITYX/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 omitted by X/Open). Other implementations may have comparable variables. Some 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.

SEE ALSOcurses(3X), curs_terminfo(3X), curs_threads(3X), terminfo(\*n).
0
Johanes Gumabo
Data Size   :   16,761 byte
man-ttytype.3xBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 189,327
Visitor ID   :     :  
Visitor IP   :   18.191.223.30   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|term_variables.3x|193|\*n). |\fBterminfo\fR(\*n). )