Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

clearok(3)

erase(3)

refresh(3)

clear(3)  —  Subroutines

NAME

clear, wclear − Clears a window

SYNOPSIS

#include <curses.h>
 
int clear()
 
int wclear(win)
    WINDOW ∗win;

DESCRIPTION

The clear routine resets the entire default window to blanks and sets the current (y, x) coordinates to (0, 0). 

The routine wclear resets the entire specified window to blanks and sets the current (y, x) coordinates to (0, 0). 

The clear routine assumes that the screen may have stray characters on it that it does not know about.  The routine first calls erase which copies blanks to every position in the default window, and then clearok, which clears the physical screen completely on the next call to refresh for stdscr. 

The routine clear is a macro. 

RETURN VALUES

The clear and wclear functions return OK on success and ERR on error. 

RELATED INFORMATION

clearok(3), erase(3), refresh(3)

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