blob: 4799d9d1d324b77cee0d85a36ac651bc8117baf2 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301'\" t
2.\"***************************************************************************
Steve Kondikae271bc2015-11-15 02:50:53 +01003.\" Copyright (c) 1998-2006,2010 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.\"
Steve Kondikae271bc2015-11-15 02:50:53 +010030.\" $Id: form_post.3x,v 1.9 2010/12/04 18:40:45 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053031.TH form_post 3X ""
32.SH NAME
Steve Kondikae271bc2015-11-15 02:50:53 +010033\fBform_post\fR \- write or erase forms from associated subwindows
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053034.SH SYNOPSIS
35\fB#include <form.h>\fR
36.br
37int post_form(FORM *form);
38.br
39int unpost_form(FORM *form);
40.br
41.SH DESCRIPTION
42The function \fBpost_form\fR displays a form to its associated subwindow. To
43trigger physical display of the subwindow, use \fBrefresh\fR or some equivalent
44\fBcurses\fR routine (the implicit \fBdoupdate\fR triggered by an \fBcurses\fR
45input request will do).
46.PP
47The function \fBunpost_form\fR erases form from its associated subwindow.
48.SH RETURN VALUE
49These routines return one of the following:
50.TP 5
51.B E_OK
52The routine succeeded.
53.TP 5
54.B E_BAD_ARGUMENT
55Routine detected an incorrect or out-of-range argument.
56.TP 5
57.B E_BAD_STATE
58Routine was called from an initialization or termination function.
59.TP 5
60.B E_NOT_POSTED
61The form has not been posted.
62.TP 5
63.B E_NOT_CONNECTED
64No items are connected to the form.
65.TP 5
66.B E_NO_ROOM
67Form is too large for its window.
68.TP 5
69.B E_POSTED
70The form has already been posted.
71.TP 5
72.B E_SYSTEM_ERROR
73System error occurred (see \fBerrno\fR).
74.
75.SH SEE ALSO
76\fBcurses\fR(3X), \fBform\fR(3X).
77.SH NOTES
78The header file \fB<form.h>\fR automatically includes the header file
79\fB<curses.h>\fR.
80.SH PORTABILITY
81These routines emulate the System V forms library. They were not supported on
82Version 7 or BSD versions.
83.SH AUTHORS
84Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
85S. Raymond.