standend, standout, wstandend, or wstandout Subroutine
Purpose
Sets and clears window attributes.
Library
Curses Library (libcurses.a)
Syntax
#include <curses.h>
int standend
(void);
int standout
(void);
int wstandend
(WINDOW *win);
int wstandout
(WINDOW *win);
int standend
(void);
int standout
(void);
int wstandend
(WINDOW *win);
int wstandout
(WINDOW *win);
Description
The standend and standout subroutines turn off all attributes of the current or specified window.
The wstandout and wstandend subroutines turn on the standout attribute of the current or specified window.
Parameters
Item | Description |
---|---|
*win | Specifies the window in which to set the attributes. |
Return Values
These subroutines always return 1.
Examples
- To turn on the standout attribute in the stdscr, enter:
This example is functionally equivalent to:standout();
attron(A_STANDOUT);
- To turn on the standout attribute in the user-defined window my_window,
enter:
This example is functionally equivalent to:WINDOW *my_window; wstandout(my_window);
wattron(my_window, A_STANDOUT);
- To turn off the standout attribute in the default window,
enter:
This example is functionally equivalent to:standend();
attroff(A_STANDOUT);
- To turn off the standout attribute in the user-defined
window my_window, enter:
This example is functionally equivalent to:WINDOW *my_window; wstandend(my_window);
wattroff(my_window, A_STANDOUT);