DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

clear(3curses)


clear -- clear a window

Synopsis

cc [options] file -lcurses
#include <curses.h>

int clear(void);

int erase(void);

int wclear(WINDOW *win);

int werase(WINDOW *win);

Description

The clear(3curses), erase(3curses), wclear(3curses) and werase(3curses) functions clear every position in the current or specified window.

The clear(3curses) and wclear(3curses) functions also achieve the same effect as calling clearok(3curses), so that the window is cleared completely on the next call to wrefresh(3curses) for the window and is redrawn in its entirety.

Return value

Upon successful completion, these functions return OK. Otherwise, they return ERR.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

clearok(3curses), doupdate(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004