attron or wattron Subroutine
Purpose
Turns on specified attributes.
Library
Curses Library (libcurses.a)
Syntax
#include <curses.h>
attron( Attributes)
char *Attributes;
char *Attributes;
Description
The attron and wattron subroutines turn on specified attributes without affecting any others. The attron subroutine turns the specified attributes on in stdscr. The wattron subroutine turns the specified attributes on in the specified window.
Parameters
Item | Description |
---|---|
Attributes | Specifies which attributes to turn on. |
Window | Specifies the window in which to turn on the specified attributes. |
Examples
- To turn on the underlining attribute in stdscr, enter:
attron(A_UNDERLINE);
- To turn on the underlining attribute in the user-defined window my_window,
enter:
wattron(my_window, A_UNDERLINE);