Restricted window attribute control functions.
Curses Library (libcurses.a)
#include <curses.h>
int attroff (int *attrs);
int attron (int *attrs);
int attrset (int *attrs);
int wattroff (WINDOW *win, int *attsr);
int wattron (WINDOW *win, int *attrs);
int wattrset (WINDOW *win, int *attsr);
These subroutines manipulate the window attributes of the current or specified window.
The attroff and wattroff subroutines turn off attrs in the current or specified specified window without affecting any others.
The attron and wattron subroutines turn on attrs in the current or specified specified window without affecting any others.
The attrset and wattrset subroutines set the background attributes of the current or specified specified window to attrs.
It unspecified whether these subroutines can be used to manipulate attributes than A_BLINK, A_BOLD, A_DIM, A_REVERSE, A_STANDOUT and A_UNDERLINE.
Item | Description |
---|---|
*attrs | Specifies which attributes to turn off. |
*win | Specifies the window in which to turn off the specified attributes. |
These subroutines always return either OK or 1.
For the attroff or wattroff subroutines:
attroff(A_UNDERLINE);
wattroff(my_window, A_UNDERLINE);
For the attron or wattron subroutines:
attron(A_UNDERLINE);
wattron(my_window, A_UNDERLINE);
For the attrset or wattrset subroutines:
attrset(A_BLINK);
wattrset(my_window, A_BLINK);
attrset(0);
wattrset(my_window, 0);