blob: c47a959d3b5a65f9918bc49283d0e6c55a9db09c [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301.\"***************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -04002.\" Copyright 2018-2023,2024 Thomas E. Dickey *
3.\" Copyright 1998-2010,2015 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304.\" *
5.\" Permission is hereby granted, free of charge, to any person obtaining a *
6.\" copy of this software and associated documentation files (the *
7.\" "Software"), to deal in the Software without restriction, including *
8.\" without limitation the rights to use, copy, modify, merge, publish, *
9.\" distribute, distribute with modifications, sublicense, and/or sell *
10.\" copies of the Software, and to permit persons to whom the Software is *
11.\" furnished to do so, subject to the following conditions: *
12.\" *
13.\" The above copyright notice and this permission notice shall be included *
14.\" in all copies or substantial portions of the Software. *
15.\" *
16.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
24.\" Except as contained in this notice, the name(s) of the above copyright *
25.\" holders shall not be used in advertising or otherwise to promote the *
26.\" sale, use or other dealings in this Software without prior written *
27.\" authorization. *
28.\"***************************************************************************
29.\"
micky3879b9f5e72025-07-08 18:04:53 -040030.\" $Id: form_new_page.3x,v 1.34 2024/03/16 15:35:01 tom Exp $
31.TH form_new_page 3X 2024-03-16 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
32.ie \n(.g \{\
33.ds `` \(lq
34.ds '' \(rq
35.\}
36.el \{\
37.ie t .ds `` ``
38.el .ds `` ""
39.ie t .ds '' ''
40.el .ds '' ""
41.\}
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053042.SH NAME
micky3879b9f5e72025-07-08 18:04:53 -040043\fBset_new_page\fP,
44\fBnew_page\fP \-
45form pagination functions
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053046.SH SYNOPSIS
micky3879b9f5e72025-07-08 18:04:53 -040047.nf
48\fB#include <form.h>
49.PP
50\fBint set_new_page(FIELD *\fIfield\fP, bool \fInew_page_flag\fP);
51\fBbool new_page(const FIELD *\fIfield\fP);
52.fi
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053053.SH DESCRIPTION
micky3879b9f5e72025-07-08 18:04:53 -040054The function \fBset_new_page\fP sets or resets a flag marking the given field
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053055as the beginning of a new page on its form.
56.PP
micky3879b9f5e72025-07-08 18:04:53 -040057The function \fBnew_page\fP is a predicate which tests if a given field marks
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053058a page beginning on its form.
59.SH RETURN VALUE
micky3879b9f5e72025-07-08 18:04:53 -040060The function \fBnew_page\fP returns \fBTRUE\fP or \fBFALSE\fP.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053061.PP
micky3879b9f5e72025-07-08 18:04:53 -040062The function \fBset_new_page\fP returns one of the following:
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053063.TP 5
64.B E_OK
65The routine succeeded.
66.TP 5
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053067.B E_CONNECTED
68The given field is already connected to a form.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053069.SH PORTABILITY
micky3879b9f5e72025-07-08 18:04:53 -040070These routines emulate the System V forms library.
71They were not supported on
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053072Version 7 or BSD versions.
73.SH AUTHORS
micky3879b9f5e72025-07-08 18:04:53 -040074Juergen Pfeifer.
75Manual pages and adaptation for new curses by Eric S. Raymond.
76.SH SEE ALSO
77\fB\%curses\fP(3X) and related pages whose names begin \*(``form_\*(''
78for detailed descriptions of the entry points.