DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

attr_get(CURSES)


attr_get -- window attribute control functions

Synopsis

cc [options] file -lcurses
#include <curses.h>

int attr_get(attr_t *attrs, short *color_pair_number, void *opts);

int attr_off(attr_t attrs, void *opts);

int attr_on(attr_t attrs, void *opts);

int attr_set(attr_t attrs, short color_pair_number, void *opts);

int color_set(short color_pair_number, void *opts);

int wattr_get(WINDOW *win, attr_t *attrs, short *color_pair_number, <br> void *opts);

int wattr_off(WINDOW *win, attr_t attrs, void *opts);

int wattr_on(WINDOW *win, attr_t attrs, void *opts);

int wattr_set(WINDOW *win, attr_t attrs, short color_pair_number, <br> void *opts);

int wcolor_set(WINDOW *win, short color_pair_number, void *opts);

Description

These functions manipulate the attributes and colour of the window rendition of the current or specified window.

The attr_get(CURSES) and wattr_get(CURSES) functions obtain the current rendition of a window. If attrs or color_pair_number is a null pointer, no information will be obtained on the corresponding rendition information and this is not an error.

The attr_off(CURSES) and wattr_off(CURSES) functions turn off attrs in the current or specified window without affecting any others.

The attr_on(CURSES) and wattr_on(CURSES) functions turn on attrs in the current or specified window without affecting any others.

The attr_set(CURSES) and wattr_set(CURSES) functions set the window rendition of the current or specified window to attrs and color_pair_number.

The color_set(CURSES) and wcolor_set(CURSES) functions set the window colour of the current or specified window to color_pair_number.

Return value

These functions always return OK.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

attroff(CURSES), curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005