erase or werase Subroutine

Purpose

Copies blank spaces to every position in a window.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
erase( )

werase( Window)
WINDOW *Window;

Description

The erase and werase subroutines copy blank spaces to every position in the specified window. Use the erase subroutine with the stdscr and the werase subroutine with user-defined windows.

Parameters

Item Description
Window Specifies the window to erase.

Examples

  1. To erase the standard screen structure, enter:
    erase();
  2. To erase the user-defined window my_window, enter:
    WINDOW *my_window;
    werase(my_window);