clearok

Sets the clear flag for the window.

Format

#include  <curses.h>

clearok  (WINDOW *win, bool boolf);

Arguments

win
The entire size of the terminal screen. You can use the windows stdscr and curscr with clearok.
boolf
A Boolean value of TRUE or FALSE. If the argument is TRUE, this forces a clearscreen to be printed on the next call to refresh, or stops the screen from being cleared if boolf is FALSE.

The type bool is defined in the <curses.h> header file as follows:

#define bool int

Description

Unlike the clear function, the clearok function does not alter the contents of the window. If the win argument is curscr, the next call to refresh causes a clearscreen, even if the window passed to refresh is not a window the size of the entire terminal screen.


Previous Page | Next Page | Table of Contents | Index