p l -tag -width "COLOR_PAIR(n)" -compact -offset indent t A_NORMAL no special attributes are applied t A_STANDOUT characters are displayed in standout mode t A_UNDERLINE characters are displayed underlined t A_REVERSE characters are displayed in inverse video t A_BLINK characters blink t A_DIM characters are displayed at a lower intensity t A_BOLD characters are displayed at a higher intensity t A_BLANK characters are added as blanks t A_PROTECT characters are protected from modification t A_ALTCHARSET characters are displayed using the alternate character set (ACS) t COLOR_PAIR(n) characters are displayed using color pair n. .El
p The functions .Fn attron and .Fn attr_on turn on the attributes specified in .Fa attr on .Dv stdscr .
p The functions .Fn attroff and .Fn attr_off turn off the attributes specified in .Fa attr on .Dv stdscr .
p The function .Fn attrset sets the attributes of .Dv stdscr to those specified in .Fa attr , turning off any others. To turn off all the attributes (including color and alternate character set), use .Fn attrset A_NORMAL .
p Multiple attributes can be manipulated by combining the attributes using a logical .Em OR . For example, .Fn attron "A_REVERSE | A_BOLD" will turn on both inverse video and higher intensity.
p The function .Fn attr_set sets the attributes of .Dv stdscr to those specified in .Fa attr and .Fa pair , turning off any others. Note that a color pair specified in .Fa pair will override any color pair specified in .Fa attr .
p The function .Fn color_set sets the color pair attribute to the pair specified in .Fa pair .
p The functions .Fn wattron , .Fn wattr_on , .Fn wattroff , .Fn wattr_on , .Fn wattrset , .Fn wattr_set and .Fn wcolor_set are equivalent to .Fn attron , .Fn attr_on , .Fn attroff .Fn attr_off , .Fn attrset , .Fn attr_set and .Fn color_set respectively, excepting that the character is added to the window specified by .Fa win .
p The function .Fn getattrs returns the attributes that are currently applied to window specified by .Fa win .
p The function .Fn attr_get sets .Fa attr to the attributes and .Fa pair to the color pair currently applied to .Dv stdscr . Either of .Fa attr and .Fa pair can be .Dv NULL , if the relevant value is of no interest.
p The function .Fn wattr_get is equivalent to .Fn attr_get , excepting that the attributes and color pair currently applied to .Fa win are set. .Sh RETURN VALUES These functions return OK on success and ERR on failure. .Sh SEE ALSO .Xr curses_addch 3 , .Xr curses_addchstr 3 , .Xr curses_addstr 3 , .Xr curses_background 3 , .Xr curses_color 3 , .Xr curses_insertch 3 , .Xr curses_standout 3 , .Xr curses_underscore 3 .Sh NOTES The .Fa opt argument is not currently used but is reserved for a future version of the specification. .Sh STANDARDS The .Nx Curses library complies with the X/Open Curses specification, part of the Single Unix Specification. .Sh HISTORY These functions first appeared in .Nx 1.5 . .Sh BUGS Some terminals do not support characters with both color and other attributes set. In this case, the other attribute is displayed instead of the color attribute.