curs_clear, clear, wclear, erase, werase, clrtobot, wclrtobot, clrtoeol, wclrtoeol - Clear all or part of a Curses window
Curses Library (libcurses)
Interfaces documented on this reference page conform to industry standards as follows:
clear, wclear, erase, werase, clrtobot, wclrtobot, clrtoeol, wclrtoeol: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
The erase and werase routines copy blanks to every position in the window.
The clear and wclear routines are similar to erase and werase but also call clearok. The result is that the screen is cleared completely on the next call to wrefresh for that window and repainted from scratch.
The clrtobot and wclrtobot routines erase all lines below the cursor in the window. In addition, these routines erase the current line to the right of the cursor, including the character on which the cursor is positioned.
erase the current line to the right of the cursor, including the character
on which the cursor is positioned.
The header file <curses.h> automatically includes the header file <stdio.h>.
may be macros.
Upon successful completion, these routines return
otherwise, they return
Functions: curses(3), curs_outopts(3), curs_refresh(3)