4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>touchwin</B>, <B>touchline</B>, <B>untouchwin</B>, <B>wtouchln</B>, <B>is_linetouched</B>,
9 <B>is_wintouched</B> - <B>curses</B> refresh control routines
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><curses.h></B>
15 <B>int</B> <B>touchwin(WINDOW</B> <B>*win);</B>
16 <B>int</B> <B>touchline(WINDOW</B> <B>*win,</B> <B>int</B> <B>start,</B> <B>int</B> <B>count);</B>
17 <B>int</B> <B>untouchwin(WINDOW</B> <B>*win);</B>
18 <B>int</B> <B>wtouchln(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>n,</B> <B>int</B> <B>changed);</B>
19 <B>bool</B> <B>is_linetouched(WINDOW</B> <B>*win,</B> <B>int</B> <B>line);</B>
20 <B>bool</B> <B>is_wintouched(WINDOW</B> <B>*win);</B>
24 <H2>DESCRIPTION</H2><PRE>
25 The <B>touchwin</B> and <B>touchline</B> routines throw away all opti-
26 mization information about which parts of the window have
27 been touched, by pretending that the entire window has
28 been drawn on. This is sometimes necessary when using
29 overlapping windows, since a change to one window affects
30 the other window, but the records of which lines have been
31 changed in the other window do not reflect the change.
32 The routine <B>touchline</B> only pretends that <I>count</I> lines have
33 been changed, beginning with line <I>start</I>.
35 The <B>untouchwin</B> routine marks all lines in the window as
36 unchanged since the last call to <B>wrefresh</B>.
38 The <B>wtouchln</B> routine makes <I>n</I> lines in the window, starting
39 at line <I>y</I>, look as if they have (<I>changed</I><B>=1</B>) or have not
40 (<I>changed</I><B>=0</B>) been changed since the last call to <B>wrefresh</B>.
42 The <B>is_linetouched</B> and <B>is_wintouched</B> routines return <B>TRUE</B>
43 if the specified line/window was modified since the last
44 call to <B>wrefresh</B>; otherwise they return <B>FALSE</B>. In addi-
45 tion, <B>is_linetouched</B> returns <B>ERR</B> if <I>line</I> is not valid for
50 <H2>RETURN VALUE</H2><PRE>
51 All routines return the integer <B>ERR</B> upon failure and an
52 integer value other than <B>ERR</B> upon successful completion,
53 unless otherwise noted in the preceding routine descrip-
58 <H2>PORTABILITY</H2><PRE>
59 The XSI Curses standard, Issue 4 describes these func-
62 Some historic curses implementations had, as an undocu-
63 mented feature, the ability to do the equivalent of
64 <B>clearok(...,</B> <B>1)</B> by saying <B>touchwin(stdscr)</B> or <B>clear(std-</B>
65 <B>scr)</B>. This will not work under ncurses.
70 Note that all routines except <B>wtouchln</B> may be macros.
74 <H2>SEE ALSO</H2><PRE>
75 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="curs_refresh.3x.html">curs_refresh(3x)</A></B>.
131 Man(1) output converted with
132 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>