NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO
#include <term.h>int vidattr(chtype attr);
Is the rendition of the foreground window.
Is a color pair.
Is reserved for future use. Currently, this must be a null pointer.
Is a user-supplied output function.
Is a user-supplied output function.
These functions change the terminal's attributes.
The vidattr() function sends a request to the terminal to display subsequent characters with the rendition specified by attr. It uses the putchar(3S) function to display the character. The vid_attr() function is similar to the vidattr() function except that it accepts the rendition as a attr_t object. This lets you use the attribute constants that begin with WA_.
The vidputs() and vid_puts() functions are similar to the vidattr() and vid_attr() functions, respectively, except that the user-supplied putfunc function is used instead of putchar(). The output of the user-supplied function is ignored by vidputs() and vid_puts() functions.
On success, these functions return OK. Otherwise, they return ERR.
None.
NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO