[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


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


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);
    

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

Manipulating Characters with Curses in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]