4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>erase</B>, <B>werase</B>, <B>clear</B>, <B>wclear</B>, <B>clrtobot</B>, <B>wclrtobot</B>, <B>clr-</B>
9 <B>toeol</B>, <B>wclrtoeol</B> - clear all or part of a <B>curses</B> window
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#</B> <B>include</B> <B><curses.h></B>
16 <B>int</B> <B>erase(void);</B>
17 <B>int</B> <B>werase(WINDOW</B> <B>*win);</B>
18 <B>int</B> <B>clear(void);</B>
19 <B>int</B> <B>wclear(WINDOW</B> <B>*win);</B>
20 <B>int</B> <B>clrtobot(void);</B>
21 <B>int</B> <B>wclrtobot(WINDOW</B> <B>*win);</B>
22 <B>int</B> <B>clrtoeol(void);</B>
23 <B>int</B> <B>wclrtoeol(WINDOW</B> <B>*win);</B>
27 <H2>DESCRIPTION</H2><PRE>
28 The <B>erase</B> and <B>werase</B> routines copy blanks to every posi-
29 tion in the window, clearing the screen.
31 The <B>clear</B> and <B>wclear</B> routines are like <B>erase</B> and <B>werase</B>,
32 but they also call <B>clearok</B>, so that the screen is cleared
33 completely on the next call to <B>wrefresh</B> for that window
34 and repainted from scratch.
36 The <B>clrtobot</B> and <B>wclrtobot</B> routines erase from the cursor
37 to the end of screen. That is, they erase all lines below
38 the cursor in the window. Also, the current line to the
39 right of the cursor, inclusive, is erased.
41 The <B>clrtoeol</B> and <B>wclrtoeol</B> routines erase the current line
42 to the right of the cursor, inclusive, to the end of the
45 Blanks created by erasure have the current background ren-
46 dition (as set by <B>wbkgdset</B>) merged into them.
50 <H2>RETURN VALUE</H2><PRE>
51 All routines return the integer <B>OK</B>. The SVr4.0 manual
52 says "or a non-negative integer if <B>immedok</B> is set", but
53 this appears to be an error.
58 Note that <B>erase</B>, <B>werase</B>, <B>clear</B>, <B>wclear</B>, <B>clrtobot</B>, and <B>clr-</B>
59 <B>toeol</B> may be macros.
63 <H2>PORTABILITY</H2><PRE>
64 These functions are described in the XSI Curses standard,
65 Issue 4. The standard specifies that they return <B>ERR</B> on
66 failure, but specifies no error conditions.
68 Some historic curses implementations had, as an undocu-
69 mented feature, the ability to do the equivalent of
70 <B>clearok(...,</B> <B>1)</B> by saying <B>touchwin(stdscr)</B> or
71 <B>clear(stdscr)</B>. This will not work under ncurses.
75 <H2>SEE ALSO</H2><PRE>
76 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="curs_outopts.3x.html">curs_outopts(3x)</A></B>, <B><A HREF="curs_refresh.3x.html">curs_refresh(3x)</A></B>
130 Man(1) output converted with
131 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>