|
|
# include <curses.h>int erase(void); int werase(WINDOW *win); int clear(void); int wclear(WINDOW *win); int clrtobot(void); int wclrtobot(WINDOW *win); int clrtoeol(void); int wclrtoeol(WINDOW *win);
The erase(S-osr5) and werase(S-osr5) routines copy blanks to every position in the window.
The clear(S-osr5) and wclear(S-osr5) routines are like erase( ) and werase( ), but they also call clearok(S-osr5), so that the screen is cleared completely on the next call to wrefresh(S-osr5) for that window and repainted from scratch.
The clrtobot(S-osr5) and wclrtobot(S-osr5) routines erase all lines below the cursor in the window. Also, the current line to the right of the cursor, inclusive, is erased.
The clrtoeol(S-osr5) and wclrtoeol(S-osr5) routines erase the current line to the right of the cursor, inclusive.
The following can be macros: erase( ), werase( ), clear( ), wclear( ), clrtobot( ), and clrtoeol( ).