1forms(3CURSES)             Curses Library Functions             forms(3CURSES)
2
3
4

NAME

6       forms - character based forms package
7

SYNOPSIS

9       #include <form.h>
10
11

DESCRIPTION

13       The  form  library  is  built using the curses library, and any program
14       using forms routines must call one of the  curses  initialization  rou‐
15       tines  such as initscr. A program using these routines must be compiled
16       with -lform and -lcurses on the cc command line.
17
18
19       The forms package gives the applications programmer a terminal-indepen‐
20       dent method of creating and customizing forms for user-interaction. The
21       forms package includes: field routines, which are used  to  create  and
22       customize  fields,  link  fields and assign field types; fieldtype rou‐
23       tines, which are used to create new field types for validating  fields;
24       and form routines, which are used to create and customize forms, assign
25       pre/post processing functions, and display and interact with forms.
26
27   Current Default Values for Field Attributes
28       The forms package establishes initial current default values for  field
29       attributes.  During  field  initialization,  each  field  attribute  is
30       assigned the current default value for that attribute.  An  application
31       can change or retrieve a current default attribute value by calling the
32       appropriate set or retrieve routine with a NULL field  pointer.  If  an
33       application changes a current default field attribute value, subsequent
34       fields created using new_field() will have the  new  default  attribute
35       value.  (The attributes of previously created fields are not changed if
36       a current default attribute value is changed.)
37
38   Routine Name Index
39       The following table lists each forms routine and the name of the manual
40       page on which it is described.
41
42       forms Routine Name       Manual Page Name
43
44
45       current_field            form_page(3X)
46
47
48       data_ahead               form_data(3X)
49
50
51       data_behind              form_data(3X)
52
53
54       dup_field                form_field_new(3X)
55
56
57       dynamic_field_info       form_field_info(3X)
58
59
60       field_arg                form_field_validation(3X)
61
62
63       field_back               form_field_attributes(3X)
64
65
66       field_buffer             form_field_buffer(3X)
67
68
69       field_count              form_field(3X)
70
71
72       field_fore               form_field_attributes(3X)
73
74
75       field_index              form_page(3X)
76
77
78       field_info                    form_field_info(3X)
79
80
81       field_init                    form_hook(3X)
82
83
84       field_just                    form_field_just(3X)
85
86
87       field_opts               form_field_opts(3X)
88
89
90       field_opts_off           form_field_opts(3X)
91
92
93       field_opts_on            form_field_opts(3X)
94
95
96       field_pad                form_field_attributes(3X)
97
98
99       field_status             form_field_buffer(3X)
100
101
102       field_term               form_hook(3X)
103
104
105       field_type               form_field_validation(3X)
106
107
108       field_userptr            form_field_userptr(3X)
109
110
111       form_driver              form_driver(3X)
112
113
114       form_fields              form_field(3X)
115
116
117       form_init                     form_hook(3X)
118
119
120       form_opts                form_opts(3X)
121
122
123       form_opts_off            form_opts(3X)
124
125
126       form_opts_on             form_opts(3X)
127
128
129       form_page                form_page(3X)
130
131
132       form_sub                 form_win(3X)
133
134
135       form_term                form_hook(3X)
136
137
138       form_userptr             form_userptr(3X)
139
140
141       form_win                      form_win(3X)
142
143
144       free_field               form_field_new(3X)
145
146
147       free_fieldtype           form_fieldtype(3X)
148
149
150       free_form                form_new(3X)
151
152
153       link_field                    form_field_new(3X)
154
155
156       link_fieldtype           form_fieldtype(3X)
157
158
159       move_field               form_field(3X)
160
161
162       new_field                     form_field_new(3X)
163
164
165       new_fieldtype                 form_fieldtype(3X)
166
167
168       new_form                      form_new(3X)
169
170
171       new_page                 form_new_page(3X)
172
173
174       pos_form_cursor          form_cursor(3X)
175
176
177       post_form                form_post(3X)
178
179
180       scale_form               form_win(3X)
181
182
183       set_current_field        form_page(3X)
184
185
186       set_field_back           form_field_attributes(3X)
187
188
189       set_field_buffer              form_field_buffer(3X)
190
191
192       set_field_fore           form_field_attributes(3X)
193
194
195       set_field_init           form_hook(3X)
196
197
198        set_field_just          form_field_just(3X)
199
200
201       set_field_opts           form_field_opts(3X)
202
203
204       set_field_pad            form_field_attributes(3X)
205
206
207       set_field_status         form_field_buffer(3X)
208
209
210       set_field_term           form_hook(3X)
211
212
213       set_field_type           form_field_validation(3X)
214
215
216       set_field_userptr        form_field_userptr(3X)
217
218
219       set_fieldtype_arg        form_fieldtype(3X)
220
221
222       set_fieldtype_choice     form_fieldtype(3X)
223
224
225       set_form_fields          form_field(3X)
226
227
228       set_form_init            form_hook(3X)
229
230
231       set_form_opts            form_opts(3X)
232
233
234       set_form_page            form_page(3X)
235
236
237       set_form_sub             form_win(3X)
238
239
240       set_form_term            form_hook(3X)
241
242
243       set_form_userptr         form_userptr(3X)
244
245
246       set_form_win             form_win(3X)
247
248
249       set_max_field            form_field_buffer(3X)
250
251
252       set_new_page             form_new_page(3X)
253
254
255       unpost_form              form_post(3X)
256
257

RETURN VALUES

259       Routines  that  return  a pointer always return NULL on error. Routines
260       that return an integer return one of the following:
261
262       E_OK                 The function returned successfully.
263
264
265       E_CONNECTED          The field is already connected to a form.
266
267
268       E_SYSTEM_ERROR       System error.
269
270
271       E_BAD_ARGUMENT       An argument is incorrect.
272
273
274       E_CURRENT            The field is the current field.
275
276
277       E_POSTED             The form is posted.
278
279
280       E_NOT_POSTED         The form is not posted.
281
282
283       E_INVALID_FIELD      The field contents are invalid.
284
285
286       E_NOT_CONNECTED      The field is not connected to a form.
287
288
289       E_NO_ROOM            The form does not fit in the subwindow.
290
291
292       E_BAD_STATE          The routine was called from an  initialization  or
293                            termination function.
294
295
296       E_REQUEST_DENIED     The form driver request failed.
297
298
299       E_UNKNOWN_COMMAND    An unknown request was passed to the form driver.
300
301

ATTRIBUTES

303       See attributes(5) for descriptions of the following attributes:
304
305
306
307
308       ┌─────────────────────────────┬─────────────────────────────┐
309       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
310       ├─────────────────────────────┼─────────────────────────────┤
311       │MT-Level                     │Unsafe                       │
312       └─────────────────────────────┴─────────────────────────────┘
313

SEE ALSO

315       curses(3CURSES), attributes(5)
316

NOTES

318       The  header  <form.h>  automatically  includes the headers  <eti.h> and
319       <curses.h>.
320
321
322
323SunOS 5.11                        31 Dec 1996                   forms(3CURSES)
Impressum