source: trunk/ncurses/man/form.3x@ 2787

Last change on this file since 2787 was 2621, checked in by bird, 19 years ago

GNU ncurses 5.5

File size: 7.7 KB
Line 
1'\" t
2.\"***************************************************************************
3.\" Copyright (c) 1998,2002 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.3x,v 1.15 2002/01/19 22:48:05 tom Exp $
31.TH form 3X ""
32.SH NAME
33\fBform\fR - curses extension for programming forms
34.SH SYNOPSIS
35\fB#include <form.h>\fR
36.br
37.SH DESCRIPTION
38The \fBform\fR library provides terminal-independent facilities for composing
39form screens on character-cell terminals. The library includes: field
40routines, which create and modify form fields; and form routines, which group
41fields into forms, display forms on the screen, and handle interaction with the
42user.
43
44The \fBform\fR library uses the \fBcurses\fR libraries, and a curses
45initialization routine such as \fBinitscr\fR must be called before using any of
46these functions. To use the \fBform\fR library, link with the options
47\fB-lform -lcurses\fR.
48
49.SS Current Default Values for Field Attributes
50
51The \fBform\fR library maintains a default value for field attributes. You
52can get or set this default by calling the appropriate \fBset_\fR
53or retrieval
54routine with a \fBNULL\fR field pointer. Changing this default with a
55\fBset_\fR function affects future field creations, but does not change the
56rendering of fields already created.
57
58.SS Routine Name Index
59
60The following table lists each \fBform\fR routine and the name of
61the manual page on which it is described.
62
63.TS
64l l
65l l .
66\fBcurses\fR Routine Name Manual Page Name
67=
68current_field \fBform_page\fR(3X)
69data_ahead \fBform_data\fR(3X)
70data_behind \fBform_data\fR(3X)
71dup_field \fBform_field_new\fR(3X)
72dynamic_fieldinfo \fBform_field_info\fR(3X)
73field_arg \fBform_field_validation\fR(3X)
74field_back \fBform_field_attributes\fR(3X)
75field_buffer \fBform_field_buffer\fR(3X)
76field_count \fBform_field\fR(3X)
77field_fore \fBform_field_attributes\fR(3X)
78field_index \fBform_page\fR(3X)
79field_info \fBform_field_info\fR(3X)
80field_init \fBform_hook\fR(3X)
81field_just \fBform_field_just\fR(3X)
82field_opts \fBform_field_opts\fR(3X)
83field_opts_off \fBform_field_opts\fR(3X)
84field_opts_on \fBform_field_opts\fR(3X)
85field_pad \fBform_field_attributes\fR(3X)
86field_status \fBform_field_buffer\fR(3X)
87field_term \fBform_hook\fR(3X)
88field_type \fBform_field_validation\fR(3X)
89field_userptr \fBform_field_userptr\fR(3X)
90form_driver \fBform_driver\fR(3X)
91form_fields \fBform_field\fR(3X)
92form_init \fBform_hook\fR(3X)
93form_opts \fBform_opts\fR(3X)
94form_opts_off \fBform_opts\fR(3X)
95form_opts_on \fBform_opts\fR(3X)
96form_page \fBform_page\fR(3X)
97form_request_by_name \fBform_requestname\fR(3X)
98form_request_name \fBform_requestname\fR(3X)
99form_sub \fBform_win\fR(3X)
100form_term \fBform_hook\fR(3X)
101form_userptr \fBform_userptr\fR(3X)
102form_win \fBform_win\fR(3X)
103free_field \fBform_field_new\fR(3X)
104free_form \fBform_new\fR(3X)
105link_field \fBform_field_new\fR(3X)
106link_fieldtype \fBform_fieldtype\fR(3X)
107move_field \fBform_field\fR(3X)
108new_field \fBform_field_new\fR(3X)
109new_form \fBform_new\fR(3X)
110new_page \fBform_new_page\fR(3X)
111pos_form_cursor \fBform_cursor\fR(3X)
112post_form \fBform_post\fR(3X)
113scale_form \fBform_win\fR(3X)
114set_current_field \fBform_page\fR(3X)
115set_field_back \fBform_field_attributes\fR(3X)
116set_field_buffer \fBform_field_buffer\fR(3X)
117set_field_fore \fBform_field_attributes\fR(3X)
118set_field_init \fBform_hook\fR(3X)
119set_field_just \fBform_field_just\fR(3X)
120set_field_opts \fBform_field_opts\fR(3X)
121set_field_pad \fBform_field_attributes\fR(3X)
122set_field_status \fBform_field_buffer\fR(3X)
123set_field_term \fBform_hook\fR(3X)
124set_field_type \fBform_field_validation\fR(3X)
125set_field_userptr \fBform_field_userptr\fR(3X)
126set_fieldtype_arg \fBform_fieldtype\fR(3X)
127set_fieldtype_choice \fBform_fieldtype\fR(3X)
128set_form_fields \fBform_field\fR(3X)
129set_form_init \fBform_hook\fR(3X)
130set_form_opts \fBform_field_opts\fR(3X)
131set_form_page \fBform_page\fR(3X)
132set_form_sub \fBform_win\fR(3X)
133set_form_term \fBform_hook\fR(3X)
134set_form_userptr \fBform_userptr\fR(3X)
135set_form_win \fBform_win\fR(3X)
136set_max_field \fBform_field_buffer\fR(3X)
137set_new_page \fBform_new_page\fR(3X)
138unpost_form \fBform_post\fR(3X)
139.TE
140.SH RETURN VALUE
141Routines that return pointers return \fBNULL\fR on error. Routines that return
142an integer return one of the following error codes:
143.TP 5
144\fBE_OK\fR
145The routine succeeded.
146.TP 5
147\fBE_CONNECTED\fR
148The field is already connected to a form.
149.TP 5
150\fBE_SYSTEM_ERROR\fR
151System error occurred (see \fBerrno\fR).
152.TP 5
153\fBE_BAD_ARGUMENT\fR
154Routine detected an incorrect or out-of-range argument.
155.TP 5
156\fBE_POSTED\fR
157The form is already posted.
158.TP 5
159\fBE_BAD_STATE\fR
160Routine was called from an initialization or termination function.
161.TP 5
162\fBE_NO_ROOM\fR
163Form is too large for its window.
164.TP 5
165\fBE_NOT_POSTED\fR
166The form has not been posted.
167.TP 5
168\fBE_UNKNOWN_COMMAND\fR
169The form driver code saw an unknown request code.
170.TP 5
171\fBE_INVALID_FIELD\fR
172Contents of a field are not valid.
173.TP 5
174\fBE_NOT_CONNECTED\fR
175No fields are connected to the form.
176.TP 5
177\fBE_REQUEST_DENIED\fR
178The form driver could not process the request.
179.SH SEE ALSO
180\fBcurses\fR(3X) and related pages whose names begin "form_" for detailed
181descriptions of the entry points.
182.SH NOTES
183The header file \fB<form.h>\fR automatically includes the header files
184\fB<curses.h>\fR and \fB<eti.h>\fR.
185
186In your library list, libform.a should be before libncurses.a; that is,
187you want to say `-lform -lncurses', not the other way around (which would
188give you a link error using GNU \fBld\fR(1) and many other linkers).
189.SH PORTABILITY
190These routines emulate the System V forms library. They were not supported on
191Version 7 or BSD versions.
192.SH AUTHORS
193Juergen Pfeifer. Manual pages and adaptation for ncurses by Eric
194S. Raymond.
195.\"#
196.\"# The following sets edit modes for GNU EMACS
197.\"# Local Variables:
198.\"# mode:nroff
199.\"# fill-column:79
200.\"# End:
Note: See TracBrowser for help on using the repository browser.