Merge branch 'vendor/NCURSES'
[dragonfly.git] / lib / libncurses / man / form_post.3
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998 Free Software Foundation, Inc.                        *
4 .\"                                                                          *
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 .\"
30 .\" $Id: form_post.3x,v 1.4 1998/11/29 01:08:10 Rick.Ohnemus Exp $
31 .\" $DragonFly: src/lib/libncurses/man/form_post.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
32 .TH form_post 3X ""
33 .SH NAME
34 \fBform_post\fR - write or erase forms from associated subwindows
35 .SH SYNOPSIS
36 \fB#include <form.h>\fR
37 .br
38 int post_form(FORM *form);
39 .br
40 int unpost_form(FORM *form);
41 .br
42 .SH DESCRIPTION
43 The function \fBpost_form\fR displays a form to its associated subwindow.  To
44 trigger physical display of the subwindow, use \fBrefresh\fR or some equivalent
45 \fBcurses\fR routine (the implicit \fBdoupdate\fR triggered by an \fBcurses\fR
46 input request will do).
47
48 The function \fBunpost_form\fR erases form from its associated subwindow.
49 .SH RETURN VALUE
50 These routines return one of the following:
51 .TP 5
52 \fBE_OK\fR
53 The routine succeeded.
54 .TP 5
55 \fBE_SYSTEM_ERROR\fR
56 System error occurred (see \fBerrno\fR).
57 .TP 5
58 \fBE_BAD_ARGUMENT\fR
59 Routine detected an incorrect or out-of-range argument.
60 .TP 5
61 \fBE_POSTED\fR
62 The form has already been posted.
63 .TP 5
64 \fBE_BAD_STATE\fR
65 Routine was called from an initialization or termination function.
66 .TP 5
67 \fBE_NO_ROOM\fR
68 Form is too large for its window.
69 .TP 5
70 \fBE_NOT_POSTED\fR
71 The form has not been posted.
72 .TP 5
73 \fBE_NOT_CONNECTED\fR
74 No items are connected to the form.
75 .SH SEE ALSO
76 \fBcurses\fR(3X), \fBform\fR(3X).
77 .SH NOTES
78 The header file \fB<form.h>\fR automatically includes the header file
79 \fB<curses.h>\fR.
80 .SH PORTABILITY
81 These routines emulate the System V forms library.  They were not supported on
82 Version 7 or BSD versions.
83 .SH AUTHORS
84 Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric
85 S. Raymond.
86 .\"#
87 .\"# The following sets edit modes for GNU EMACS
88 .\"# Local Variables:
89 .\"# mode:nroff
90 .\"# fill-column:79
91 .\"# End: