HPlogo 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

 » 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

Feedback to webmaster