terminfo_variables


HOME

terminfo_variables

NAME
SYNOPSIS
DESCRIPTION
NOTES
PORTABILITY
SEE ALSO

NAME

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

SYNOPSIS

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

DESCRIPTION

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 threads(3NCURSES)) 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 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 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 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 to reuse in set_term.

Terminfo Names
The 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, though the hash-tables are not available.

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.

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

NOTES

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

PORTABILITY

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

SEE ALSO

ncurses(3NCURSES), terminfo(3NCURSES), threads(3NCURSES), terminfo(5).







Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.