curses.5 (2010 09)

c
curses(5) curses(5)
(CURSES)
NAME
curses: curses.h - definitions for screen handling and optimization functions
SYNOPSIS
#include <curses.h>
DESCRIPTION
Objects
The <curses.h> header provides a declaration for COLOR_PAIRS, COLORS, COLS, curscr , LINES
and stdscr .
Constants
The following constants are defined:
EOF Function return value for end-of-file
ERR Function return value for failure
FALSE Boolean false value
OK Function return value for success
TRUE Boolean true value
WEOF Wide-character function return value for end-of-file, as defined in
<wchar.h>.
Data Types
The following data types are defined through typedef:
attr_t An OR-ed set of attributes
bool Boolean data type
chtype A character, attributes and a colour-pair
SCREEN An opaque terminal representation
wchar_t As described in <stddef.h>
wint_t As described in <wchar.h>
cchar_t References a string of wide characters
WINDOW An opaque window representation
These data types are described in more detail in Data Types in curses_intro (3X).
The inclusion of
<curses.h> may make visible all symbols from the headers <stdio.h>, <term.h>,
<termios.h> and <wchar.h>.
Attribute Bits
The following symbolic constants are used to manipulate objects of type
attr_t:
WA_ALTCHARSET Alternate character set
WA_BLINK Blinking
WA_BOLD Extra bright or bold
WA_DIM Half bright
WA_HORIZONTAL Horizontal highlight
WA_INVIS Invisible
WA_LEFT Left highlight
WA_LOW Low highlight
WA_PROTECT Protected
WA_REVERSE Reverse video
WA_RIGHT Right highlight
WA_STANDOUT Best highlighting mode of the terminal
WA_TOP Top highlight
WA_UNDERLINE Underlining
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (12 pages)