Activate the video display attribute attr within the window. The
setattr function acts on the stdscr window.
Format
#include <curses.h>
int setattr (int attr);
int wsetattr (WINDOW *win, int attr);
1 – Arguments
win
A pointer to the window.
attr
One of a set of video display attributes, which are blinking,
boldface, reverse video, and underlining, and are represented by
the defined constants _BLINK, _BOLD, _REVERSE, and _UNDERLINE,
respectively. You can set multiple attributes by separating them
with a bitwise OR operator (|) as follows:
setattr(_BLINK | _UNDERLINE);
2 – Description
The setattr and wsetattr functions are specific to VSI C for
OpenVMS Systems and are not portable.
3 – Return Values
OK Indicates success.
ERR Indicates an error.