]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/form_post.3x
a255af41b3ce11f6ea78171f12b3305b92321321
[ncurses.git] / man / form_post.3x
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2018,2019 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.13 2019/01/20 20:31:42 tom Exp $
31 .TH form_post 3X ""
32 .SH NAME
33 \fBpost_form\fR,
34 \fBunpost_form\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.
44 To trigger physical display of the subwindow,
45 use \fBrefresh\fR(3X) or some equivalent
46 \fBcurses\fR routine (the implicit \fBdoupdate\fR triggered by an \fBcurses\fR
47 input request will do).
48 .PP
49 The function \fBunpost_form\fR erases form from its associated subwindow.
50 .SH RETURN VALUE
51 These routines return one of the following:
52 .TP 5
53 .B E_OK
54 The routine succeeded.
55 .TP 5
56 .B E_BAD_ARGUMENT
57 Routine detected an incorrect or out-of-range argument.
58 .TP 5
59 .B E_BAD_STATE
60 Routine was called from an initialization or termination function.
61 .TP 5
62 .B E_NOT_POSTED
63 The form has not been posted.
64 .TP 5
65 .B E_NOT_CONNECTED
66 No items are connected to the form.
67 .TP 5
68 .B E_NO_ROOM
69 Form is too large for its window.
70 .TP 5
71 .B E_POSTED
72 The form has already been posted.
73 .TP 5
74 .B E_SYSTEM_ERROR
75 System error occurred (see \fBerrno\fR(3)).
76 .
77 .SH SEE ALSO
78 \fBcurses\fR(3X), \fBform\fR(3X).
79 .SH NOTES
80 The header file \fB<form.h>\fR automatically includes the header file
81 \fB<curses.h>\fR.
82 .SH PORTABILITY
83 These routines emulate the System V forms library.
84 They were not supported on
85 Version 7 or BSD versions.
86 .SH AUTHORS
87 Juergen Pfeifer.
88 Manual pages and adaptation for new curses by Eric S. Raymond.