X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_touch.3x;h=8d4a88cb0cfb7c1b4c7ae3867dedd98ea24dd0af;hp=fa0f12ca7a0100ac2118eb0b60afe51c9d8e6931;hb=02c4e383be9337e73a0e75844dfd1047745adb28;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/man/curs_touch.3x b/man/curs_touch.3x index fa0f12ca..8d4a88cb 100644 --- a/man/curs_touch.3x +++ b/man/curs_touch.3x @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright (c) 1998-2000,2005 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_touch.3x,v 1.10 2005/05/15 16:19:19 tom Exp $ +.\" $Id: curs_touch.3x,v 1.20 2017/11/25 16:19:42 tom Exp $ .TH curs_touch 3X "" .na .hy 0 @@ -36,7 +36,7 @@ \fBuntouchwin\fR, \fBwtouchln\fR, \fBis_linetouched\fR, -\fBis_wintouched\fR - \fBcurses\fR refresh control routines +\fBis_wintouched\fR \- \fBcurses\fR refresh control routines .ad .hy .SH SYNOPSIS @@ -63,15 +63,15 @@ to one window affects the other window, but the records of which lines have been changed in the other window do not reflect the change. The routine \fBtouchline\fR only pretends that \fIcount\fR lines have been changed, beginning with line \fIstart\fR. - +.PP The \fBuntouchwin\fR routine marks all lines in the window as unchanged since the last call to \fBwrefresh\fR. - +.PP The \fBwtouchln\fR routine makes \fIn\fR lines in the window, starting at line \fIy\fR, look as if they have (\fIchanged\fR\fB=1\fR) or have not (\fIchanged\fR\fB=0\fR) been changed since the last call to \fBwrefresh\fR. - +.PP The \fBis_linetouched\fR and \fBis_wintouched\fR routines return \fBTRUE\fR if the specified line/window was modified since the last call to \fBwrefresh\fR; otherwise they return \fBFALSE\fR. In @@ -84,13 +84,22 @@ preceding routine descriptions. .PP X/Open does not define any error conditions. In this implementation -.RS +.RS 3 .TP 5 \fBis_linetouched\fP returns an error if the window pointer is null, or if the line number is outside the window. -Note that ERR is distinct from TRUE and FALSE, which are the normal return values of this function. +.IP +The constant \fBERR\fP is distinct from \fBTRUE\fP and \fBFALSE\fP, +which are the normal return values of this function. +Because the function returns a \fBbool\fP, +returning \fBERR\fP (which is neither \fBTRUE\fP nor \fBFALSE\fP) +may not be supported by the compiler. +.IP +To provide error-checking and also match the X/Open function prototype, +the \fBERR\fP is provided by a macro named \fBis_linetouched\fP. +The actual function returns \fBFALSE\fP when it detects an error. .TP 5 \fBwtouchln\fP returns an error @@ -98,19 +107,20 @@ if the window pointer is null, or if the line number is outside the window. .RE .SH PORTABILITY -The XSI Curses standard, Issue 4 describes these functions. - -Some historic curses implementations had, as an undocumented feature, the -ability to do the equivalent of \fBclearok(..., 1)\fR by saying -\fBtouchwin(stdscr)\fR or \fBclear(stdscr)\fR. This will not work under -ncurses. +.PP +These functions were introduced by SVr4. +The Solaris curses header file, +for instance, defines both an actual function and macro for each. +The macros give the same result as the actual functions. +SVr4 curses does not check the window parameter \fIwin\fP to ensure +that it is not \fBNULL\fP; +otherwise this implementation behaves the same as SVr4. +.PP +The XSI Curses standard, Issue 4 describes these functions, +but defines no error conditions. .SH NOTES -Note that all routines except \fBwtouchln\fR may be macros. +All of these routines except \fBwtouchln\fR may be macros. .SH SEE ALSO -\fBcurses\fR(3X), \fBcurs_refresh\fR(3X). -.\"# -.\"# The following sets edit modes for GNU EMACS -.\"# Local Variables: -.\"# mode:nroff -.\"# fill-column:79 -.\"# End: +\fBcurses\fR(3X), +\fBcurs_refresh\fR(3X), +\fBcurs_variables\fR(3X).