curses_variables
NAMESYNOPSIS
DESCRIPTION
NOTES
PORTABILITY
SEE ALSO
NAME
COLORS, COLOR_PAIRS, COLS, ESCDELAY, LINES, TABSIZE, curscr, newscr, stdscr − curses global variables
SYNOPSIS
#include <ncurses/curses.h>
int
COLOR_PAIRS;
int COLORS;
int COLS;
int ESCDELAY;
int LINES;
int TABSIZE;
WINDOW * curscr;
WINDOW * newscr;
WINDOW * stdscr;
DESCRIPTION
This page summarizes variables provided by the curses library. A more complete description is given in the curses(3X) manual page.
Depending on the configuration, these may be actual variables, or macros (see threads(3NCURSES) and opaque(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.
COLOR_PAIRS
After initializing curses, this variable contains the number
of color pairs which the terminal can support. Usually the
number of color pairs will be the product
COLORS*COLORS, however this is not always
true:
• |
a few terminals use HLS colors, which do not follow this rule | ||
• |
terminals supporting a large number of colors are limited by the number of color pairs that can be represented in a signed short value. |
COLORS
After initializing curses, this variable contains the number
of colors which the terminal can support.
COLS
After initializing curses, this variable contains the width
of the screen, i.e., the number of columns.
ESCDELAY
This variable holds the number of milliseconds to wait after
reading an escape character, to distinguish between an
individual escape character entered on the keyboard from
escape sequences sent by cursor- and function-keys (see
curses(3X).
LINES
After initializing curses, this variable contains the height
of the screen, i.e., the number of lines.
TABSIZE
This variable holds the number of columns used by the
curses library when converting a tab character to
spaces as it adds the tab to a window (see
curs_addch(3X).
The Current
Screen
This implementation of curses uses a special window
curscr to record its updates to the terminal
screen.
The New
Screen
This implementation of curses uses a special window
newscr to hold updates to the terminal screen before
applying them to curscr.
The Standard
Screen
Upon initializing curses, a default window called
stdscr, which is the size of the terminal screen, is
created. Many curses functions use this window.
NOTES
The curses library is initialized using either initscr(3X), or newterm(3X).
If curses is configured to use separate curses/terminfo libraries, most of these variables reside in the curses library.
PORTABILITY
ESCDELAY and TABSIZE are extensions, not provided in most other implementations of curses.
SEE ALSO
ncurses(3NCURSES), opaque(3NCURSES), terminfo(3NCURSES), threads(3NCURSES), terminfo_variables(3NCURSES), terminfo(5).
More Linux Commands
manpages/passmass.1.html
passmass(1) - change password on multiple machines (ManPage)
Passmass changes a password on multiple machines. If you have accounts on several machines that do not share password databases, Passmass can help you keep them
manpages/XShmCreateImage.3.html
XShmCreateImage(3) - X Shared Memory extension functions....
XShmQueryExtension checks to see if the shared memory extensions are available for the specified display. XShmQueryVersion returns the version numbers of the ex
manpages/XpDestroyContext.3x.html
XpDestroyContext(3x) - Gets the current print context-id for
XpDestroyContext closes any outstanding associations between the print context and any display connections, and then destroys the print context. All display con
manpages/mrtg-traffic-sum.1.html
mrtg-traffic-sum(1) Builds monthly traffic summary from mrtg
The mrtg-traffic-sum goes through the mrtg logs for the targets in the the config file specified and builds the traffic total for the last month in Giga Bytes.
manpages/endprotoent.3.html
endprotoent(3) - get protocol entry - Linux manual page.....
endprotoent.3 - The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the b
manpages/arm_sync_file_range.2.html
arm_sync_file_range(2) - sync a file segment with disk......
sync_file_range() permits fine control when synchronizing the open file referred to by the file descriptor fd with disk. offset is the starting byte of the file
manpages/Tcl_CreateAlias.3.html
Tcl_CreateAlias(3) - manage multiple Tcl interpreters, alias
These procedures are intended for access to the multiple interpreter facility from inside C programs. They enable managing multiple interpreters in a hierarchic
manpages/TYPE_NUMERIC.3form.html
TYPE_NUMERIC(3form) - form system global variables (ManPage)
These are building blocks for the form library, defining fields that can be created using set_fieldtype(3X). Each provides functions for field- and character-va
manpages/getservbyport_r.3.html
getservbyport_r(3) - get service entry (reentrant) (ManPage)
The getservent_r(), getservbyname_r(), and getservbyport_r() functions are the reentrant equivalents of, respectively, getservent(3), getservbyname(3), and gets
manpages/fmt.1.html
fmt(1) - simple optimal text formatter - Linux manual page
Reformat each paragraph in the FILE(s), writing to standard output. The option -WIDTH is an abbreviated form of --width=DIGITS. Mandatory arguments to long opti
manpages/rewinddir.3.html
rewinddir(3) - reset directory stream - Linux manual page...
The rewinddir() function resets the position of the directory stream dirp to the beginning of the directory. RETURN VALUE The rewinddir() function returns no va
manpages/XtPeekEvent.3.html
XtPeekEvent(3) - query and process events and input.........
XtNextEvent has been replaced by XtAppNextEvent. XtPeekEvent has been replaced by XtAppPeekEvent. XtPending has been replaced by XtAppPending. XtProcessEvent ha
