2 .\" Copyright (c) 1990, 1995 by Mortice Kern Systems Inc. All Rights Reserved Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CLEAR 3XCURSES "Jun 5, 2002"
8 clear, erase, wclear, werase \- clear a window
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-I\fR /usr/xpg4/include \fB -L \fR /usr/xpg4/lib \e
13 \fB -R \fR /usr/xpg4/lib \fB -lcurses \fR [ \fIlibrary\fR... ]
15 \fBc89\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR... ]
19 \fBint\fR \fBclear\fR(\fBvoid\fR);
24 \fBint\fR \fBerase\fR(\fBvoid\fR);
29 \fBint\fR \fBwclear\fR(\fBWINDOW *\fR\fIwin\fR);
34 \fBint\fR \fBwerase\fR(\fBWINDOW *\fR\fIwin\fR);
40 The \fBclear()\fR and \fBerase()\fR functions clear \fBstdscr\fR, destroying
41 its previous contents. The \fBwclear()\fR and \fBwerase()\fR functions perform
42 the same action, but clear the window specified by \fIwin\fR instead of
46 The \fBclear()\fR and \fBwclear()\fR functions also call the \fBclearok()\fR
47 function. This function clears and redraws the entire screen on the next call
48 to \fBrefresh\fR(3XCURSES) or \fBwrefresh\fR(3XCURSES) for the window.
51 The current background character (and attributes) is used to clear the screen.
59 Is a pointer to the window that is to be cleared.
69 Successful completion.
84 See \fBattributes\fR(5) for descriptions of the following attributes:
92 ATTRIBUTE TYPE ATTRIBUTE VALUE
94 Interface Stability Standard
102 \fBbkgdset\fR(3XCURSES), \fBclearok\fR(3XCURSES), \fBclrtobot\fR(3XCURSES),
103 \fBclrtoeol\fR(3XCURSES), \fBdoupdate\fR(3XCURSES), \fBlibcurses\fR(3XCURSES),
104 \fBrefresh\fR(3XCURSES), \fBwrefresh\fR(3XCURSES), \fBattributes\fR(5),