HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

erase werase

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The erase and werase routines are used to erase a window.

Syntax

   #include <curses.h>



   int erase();

   int werase(WINDOW *win);

Parameters

win

A pointer to the window that you want to erase.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The erase() routine erases the contents of the stdscr window, destroying its previous contents. The werase() routine performs the same action, but erases the content of win instead of stdscr. The current background character (and attributes) is used to erase the screen.

NOTE: The erase() routine is a macro.

Implementation Considerations

Identical to XPG/3

See Also

clearok(), wbkgdset(), wclear(), wclrtobot(), wclrtoeol()

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster