[ Bottom of Page | Previous Page | Next Page | 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);

Related Information

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

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

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

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