attr_get(3X) attr_get(3X)
NAME
attrget, attroff, attron, attrset, colorset, wattrget,
wattroff, wattron, wattrset, wcolorset - window attribute control
functions
SYNOPSIS
cc [flag ...] file ... -lcurses [library ...]
#include <curses.h>
int attrget(attrt *attrs, short *colorpairnumber, void *opts);
int attroff(attrt attrs, void *opts);
int attron(attrt attrs, void *opts);
int attrset(attrt attrs, short colorpairnumber, void *opts);
int colorset(short colorpairnumber, void *opts);
int wattrget(WINDOW *win, attrt *attrs, short *colorpairnumber,
void *opts);
int wattroff(WINDOW *win, attrt attrs, void *opts);
int wattron(WINDOW *win, attrt attrs, void *opts);
int wattrset(WINDOW *win, attrt attrs, short colorpairnumber,
void *opts);
int wcolorset(WINDOW *win, short colorpairnumber, void *opts);
DESCRIPTION
These functions manipulate the attributes and colour of the window
rendition of the current or specified window.
The attrget() and wattrget() functions obtain the current rendition
of a window. If attrs or colorpairnumber is a null pointer, no
information will be obtained on the corresponding rendition informa-
tion and this is not an error.
The attroff() and wattroff() functions turn off attrs in the current
or specified window without affecting any others.
The attron() and wattron() functions turn on attrs in the current or
specified window without affecting any others.
The attrset() and wattrset() functions set the window rendition of
the current or specified window to attrs and colorpairnumber.
The colorset() and wcolorset() functions set the window colour of
the current or specified window to colorpairnumber.
Page 1 Reliant UNIX 5.44 Printed 11/98
attr_get(3X) attr_get(3X)
RETURN VALUE
These functions always return OK.
ERRORS
No errors are defined.
SEE ALSO
attroff(3X), curses(3X), curses(5).
Page 2 Reliant UNIX 5.44 Printed 11/98