.TH vidputs() "" "" "terminfo Function"
.PC "Write video attributes into a function"
.B "#include <curses.h>"
\fBvidputs(\fInewmode\fB,\fIoutc\fB)\fR
\fBint \fInewmode\fB;\fR
\fBint (*\fIoutc\^\fB)();\fR
.PP
\*(CO comes with a set of
functions that let you use \fBterminfo\fR descriptions
to manipulate a terminal.
.B vidputs()
resets the video attributes of the terminal that had been opened by a call to
.BR setupterm() .
.PP
.I newmode
is any combination of the macros
.BR A_STANDOUT ,
.BR A_UNDERLINE ,
.BR A_REVERSE ,
.BR A_BLINK ,
.BR A_DIM ,
.BR A_BOLD ,
.BR A_INVIS ,
.BR A_PROTECT ,
and
.BR A_ALTCHARSET ,
OR'd together.
Their names are self-explanatory; all are defined in the header file
.BR curses.h .
.PP
.I outc
points to a function that takes a single character as an argument, e.g.,
\fBputchar()\fR.
.PP
The related function
.B vidattr()
resets video attributes without requiring a pointer to a function.
.SH "See Also"
.Xr "curses.h," curses.h
.Xr "setupterm()," setupterm
.Xr "terminfo," terminfo
.Xr "vidattr()" vidattr
