1clear(3XCURSES)         X/Open Curses Library Functions        clear(3XCURSES)
2
3
4

NAME

6       clear, erase, wclear, werase - clear a window
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       int clear(void);
17
18
19       int erase(void);
20
21
22       int wclear(WINDOW *win);
23
24
25       int werase(WINDOW *win);
26
27

DESCRIPTION

29       The  clear() and erase() functions clear stdscr,  destroying its previ‐
30       ous contents. The wclear() and  werase()  functions  perform  the  same
31       action,  but clear the window specified by win instead of stdscr.
32
33
34       The  clear()  and  wclear() functions also call the clearok() function.
35       This function clears and redraws the entire screen on the next call  to
36       refresh(3XCURSES) or wrefresh(3XCURSES) for the window.
37
38
39       The  current background character (and attributes) is used to clear the
40       screen.
41

PARAMETERS

43       win    Is a pointer to the window that is to be cleared.
44
45

ERRORS

47       OK     Successful completion.
48
49
50       ERR    An error occurred.
51
52

ATTRIBUTES

54       See attributes(5) for descriptions of the following attributes:
55
56
57
58
59       ┌─────────────────────────────┬─────────────────────────────┐
60       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │Interface Stability          │Standard                     │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │MT-Level                     │Unsafe                       │
65       └─────────────────────────────┴─────────────────────────────┘
66

SEE ALSO

68       bkgdset(3XCURSES),    clearok(3XCURSES),    clrtobot(3XCURSES),    clr‐
69       toeol(3XCURSES),        doupdate(3XCURSES),        libcurses(3XCURSES),
70       refresh(3XCURSES), wrefresh(3XCURSES), attributes(5), standards(5)
71
72
73
74SunOS 5.11                        5 Jun 2002                   clear(3XCURSES)
Impressum