erase or werase Subroutine
Purpose
Copies blank spaces to every position in a window.
Library
Curses Library (libcurses.a)
Syntax
Description
The erase and werase subroutines copy blank spaces to every position in the specified window. Use the erase subroutine with the stdscr and the werase subroutine with user-defined windows.
Parameters
Item | Description |
---|---|
Window | Specifies the window to erase. |
Examples
- To erase the standard screen structure, enter:
erase();
- To erase the user-defined window my_window, enter:
WINDOW *my_window; werase(my_window);