Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

clear wclear

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The clear and wclear routines are used to clear the window.

Syntax

   #include <curses.h>



   int clear();

   int wclear(WINDOW *win);

Parameters

win

A pointer to the window that is to be cleared.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The clear() routine clears stdscr, destroying its previous contents. The wclear() routine performs the same action, but clears the window specified by win instead of stdscr. These routines are similar to erase() and werase() except they also call clearok(). The clearok() routine clears and redraws the entire screen on the next call to wrefresh() for the window.

The current background character (and attributes) is used to clear the screen.

NOTE: The clear() routine is a macro.

Implementation Considerations

Identical to XPG/3

See Also

clearok(), wbkgdset(), wclrtobot(), wclrtoeol(), werase()

Portability

HP-UX, UNIX System V, XPG/3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.