1curs_clear(3CURSES) Curses Library Functions curs_clear(3CURSES)
2
3
4
6 curs_clear, erase, werase, clear, wclear, clrtobot, wclrtobot, clr‐
7 toeol, wclrtoeol - clear all or part of a curses window
8
10 cc [ flag... ] file ... -lcurses [ library ... ]
11 #include <curses.h>
12
13 int erase(void);
14
15
16 int werase(WINDOW *win);
17
18
19 int clear(void);
20
21
22 int wclear(WINDOW *win);
23
24
25 int clrtobot(void);
26
27
28 int wclrtobot(WINDOW *win);
29
30
31 int clrtoeol(void);
32
33
34 int wclrtoeol(WINDOW *win);
35
36
38 The erase() and werase() routines copy blanks to every position in the
39 window.
40
41
42 The clear() and wclear() routines are like erase() and werase(), but
43 they also call clearok() , so that the screen is cleared completely on
44 the next call to wrefresh() for that window and repainted from scratch.
45
46
47 The clrtobot() and wclrtobot() routines erase all lines below the cur‐
48 sor in the window. Also, the current line to the right of the cursor,
49 inclusive, is erased.
50
51
52 The clrtoeol() and wclrtoeol() routines erase the current line to the
53 right of the cursor, inclusive.
54
56 All routines return the integer OK, or a non-negative integer if imme‐
57 dok() is set. See curs_outopts(3CURSES).
58
60 See attributes(5) for descriptions of the following attributes:
61
62
63
64
65 ┌─────────────────────────────┬─────────────────────────────┐
66 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
67 ├─────────────────────────────┼─────────────────────────────┤
68 │MT-Level │Unsafe │
69 └─────────────────────────────┴─────────────────────────────┘
70
72 curs_outopts(3CURSES), curs_refresh(3CURSES), curses(3CURSES),
73 attributes(5)
74
76 The header <curses.h> automatically includes the headers <stdio.h> and
77 <unctrl.h>.
78
79
80 Note that erase(), werase(), clear(), wclear(), clrtobot(), and clr‐
81 toeol() may be macros.
82
83
84
85SunOS 5.11 31 Dec 1996 curs_clear(3CURSES)