Explicitly specify `all' as the default target(as it used to be), so as
[dragonfly.git] / lib / libncurses / man / curs_touch.3
1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_touch.3x,v 1.8 2000/07/08 11:07:57 tom Exp $
30 .\" $DragonFly: src/lib/libncurses/man/curs_touch.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
31 .TH curs_touch 3X ""
32 .SH NAME
33 \fBtouchwin\fR,
34 \fBtouchline\fR,
35 \fBuntouchwin\fR,
36 \fBwtouchln\fR,
37 \fBis_linetouched\fR,
38 \fBis_wintouched\fR - \fBcurses\fR refresh control routines
39 .SH SYNOPSIS
40 \fB#include <curses.h>\fR
41 .br
42 \fBint touchwin(WINDOW *win);\fR
43 .br
44 \fBint touchline(WINDOW *win, int start, int count);\fR
45 .br
46 \fBint untouchwin(WINDOW *win);\fR
47 .br
48 \fBint wtouchln(WINDOW *win, int y, int n, int changed);\fR
49 .br
50 \fBbool is_linetouched(WINDOW *win, int line);\fR
51 .br
52 \fBbool is_wintouched(WINDOW *win);\fR
53 .br
54 .SH DESCRIPTION
55 The \fBtouchwin\fR and \fBtouchline\fR routines throw away all
56 optimization information about which parts of the window have been
57 touched, by pretending that the entire window has been drawn on.  This
58 is sometimes necessary when using overlapping windows, since a change
59 to one window affects the other window, but the records of which lines
60 have been changed in the other window do not reflect the change.  The
61 routine \fBtouchline\fR only pretends that \fIcount\fR lines have been
62 changed, beginning with line \fIstart\fR.
63
64 The \fBuntouchwin\fR routine marks all lines in the window as unchanged since
65 the last call to \fBwrefresh\fR.
66
67 The \fBwtouchln\fR routine makes \fIn\fR lines in the window, starting
68 at line \fIy\fR, look as if they have (\fIchanged\fR\fB=1\fR) or have
69 not (\fIchanged\fR\fB=0\fR) been changed since the last call to
70 \fBwrefresh\fR.
71
72 The \fBis_linetouched\fR and \fBis_wintouched\fR routines return
73 \fBTRUE\fR if the specified line/window was modified since the last
74 call to \fBwrefresh\fR; otherwise they return \fBFALSE\fR.  In
75 addition, \fBis_linetouched\fR returns \fBERR\fR if \fIline\fR is not
76 valid for the given window.
77 .SH RETURN VALUE
78 All routines return the integer \fBERR\fR upon failure and an integer value
79 other than \fBERR\fR upon successful completion, unless otherwise noted in the
80 preceding routine descriptions.
81 .SH PORTABILITY
82 The XSI Curses standard, Issue 4 describes these functions.
83
84 Some historic curses implementations had, as an undocumented feature, the
85 ability to do the equivalent of \fBclearok(..., 1)\fR by saying
86 \fBtouchwin(stdscr)\fR or \fBclear(stdscr)\fR.  This will not work under
87 ncurses.
88 .SH NOTES
89 Note that all routines except \fBwtouchln\fR may be macros.
90 .SH SEE ALSO
91 \fBcurses\fR(3X), \fBcurs_refresh\fR(3X).
92 .\"#
93 .\"# The following sets edit modes for GNU EMACS
94 .\"# Local Variables:
95 .\"# mode:nroff
96 .\"# fill-column:79
97 .\"# End: