DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

clear(CURSES)


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(CURSES), erase(CURSES), wclear(CURSES) and werase(CURSES) functions clear every position in the current or specified window.

The clear(CURSES) and wclear(CURSES) functions also achieve the same effect as calling clearok(CURSES), so that the window is cleared completely on the next call to wrefresh(CURSES) 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(CURSES), doupdate(CURSES), curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005