from small one page howto to huge articles all in one place
 

search text in:





Poll
What does your sytem tell when running "ulimit -u"?








poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

106731

userrating:

average rating: 1.7 (85 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

220955

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

101340

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





term_variables

Section: Miscellaneous Library Functions (3X)
Updated:
Index Return to Main Contents
 

NAME

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

SYNOPSIS

#include <curses.h>

#include <term.h> chtype acs_map[]; 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;
 

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 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 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, 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 Type

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

Terminfo Names

In 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 cur_term->type.

These symbols provide a faster method of accessing terminfo capabilities than using tigetstr(3X), etc.  

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.

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 ALSO

curses(3X), curs_terminfo(3X), curs_threads(3X), terminfo(5).


 

Index

NAME
SYNOPSIS
DESCRIPTION
Alternate Character Set Mapping
Current Terminal Data
Terminfo Names
Terminal Type
Terminfo Names
NOTES
PORTABILITY
SEE ALSO


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 2.7 ms