- NetBSD Manual Pages
CURSES_CLEAR(3) NetBSD Library Functions Manual CURSES_CLEAR(3)
Powered by man-cgi (2020-09-24).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
curses_clear, clear, wclear, clearok, clrtobot, clrtoeol, erase, werase,
wclrtobot, wclrtoeol -- curses clear window routines
Curses Library (libcurses, -lcurses)
clearok(WINDOW *win, bool flag);
These functions clear all or part of stdscr or of the specified window.
The clear() and erase() functions erase all characters on stdscr. These
differ in that clear() uses clearok() to force a complete redraw on the
next refresh, and erase() does not. wclear() and werase() perform the
same function as clear() and erase(), respectively, excepting that the
specified window is cleared.
By setting flag to TRUE, the clearok() function is used to force the next
call to wrefresh() to clear and completely redraw the window given in
The function clrtobot() will clear stdscr from the current row to the
bottom of the screen. clrtoeol() will clear stdscr from the current col-
umn position to the end of the line. wclrtobot() and wclrtoeol() are the
same as clrtobot() and clrtoeol(), respectively, excepting the window
specified is operated on instead of stdscr.
Functions returning pointers will return NULL if an error is detected.
The functions that return an int will return one of the following values:
OK The function completed successfully.
ERR An error occurred in the function.
The NetBSD Curses library complies with the X/Open Curses specification,
part of the Single Unix Specification.
The Curses package appeared in 4.0BSD.
NetBSD 9.99 January 11, 2019 NetBSD 9.99