| FORMS(3) | Library Functions Manual | FORMS(3) |
form — form
library
Curses Form Library (libform, -lform)
#include
<form.h>
The form library provides a terminal
independent form system using the
curses(3) library. Before
using the form functions the terminal must be set up
by curses(3) using the
initscr()
function or similar. Programs using form functions
must be linked with the
curses(3) library
-lcurses.
The form library provides facilities for
defining form fields, placing a form on the terminal screen, assign pre and
post change operations and setting the attributes of both the form and its
fields.
The form library allows any settable
attribute or option of both the form and field objects to be defined such
that any new form or field automatically inherits the value as default.
Setting the default value will not affect any field or form that has already
been created but will be applied to subsequent objects. To set the default
attribute or option the set routine is passed a NULL
pointer in the field or form parameter when calling the set routine. The
current default value can be retrieved by calling the get routine with a
NULL pointer for the field or form parameter.
Any function returning a string pointer will return
NULL if an error occurs. Functions returning an
integer will return one of the following:
This implementation of the forms library does depart in behavior subtly from the original AT&T implementation. Some of the more notable departures are:
O_REFORMAT| November 24, 2004 | NetBSD 11.0 |