Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bkgdset(3XC)

clearok(3XC)

clrtobot(3XC)

clrtoeol(3XC)

doupdate(3XC)

refresh(3XC)

wrefresh(3XC)

clear(3XC)

NAME

clear, erase, wclear, werase − clear a window

SYNOPSIS

#include <curses.h>

int clear(void);

int erase(void)

int wclear(WINDOW ∗win);

int werase(WINDOW ∗win);

ARGUMENTS

winIs a pointer to the window that is to be cleared. 

DESCRIPTION

The clear() and erase() functions clear stdscr, destroying its previous contents.  The wclear() and werase() functions perform the same action, but clear the window specified by win instead of stdscr. 

The clear() and wclear() functions also call the clearok() function.  This function clears and redraws the entire screen on the next call to refresh(3XC) or wrefresh(3XC) for the window. 

The current background character (and attributes) is used to clear the screen. 

ERRORS

OKSuccessful completion. 

ERRAn error occurred. 

SEE ALSO

bkgdset(3XC), clearok(3XC), clrtobot(3XC), clrtoeol(3XC), doupdate(3XC), refresh(3XC), wrefresh(3XC)

SunOS 5.6  —  Last change: 1 Jun 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026