man.bsd.lv manual page server

Manual Page Search Parameters

FORMS(3) Library Functions Manual FORMS(3)

field_init, field_term, form_init, form_term, set_field_init, set_field_term, set_form_init, set_form_termform library

library “libform”

#include <form.h>

void (*)(FORM *)
field_init(FORM *form);

void (*)(FORM *)
field_term(FORM *form);

void (*)(FORM *)
form_init(FORM *form);

void (*)(FORM *)
form_term(FORM *form);

int
set_field_init(FORM *form, void (*function)(FORM *));

int
set_field_term(FORM *form, void (*function)(FORM *));

int
set_form_init(FORM *form, void (*function)(FORM *));

int
set_form_term(FORM *form, void (*function)(FORM *));

The () function returns a pointer to the function that will be called just after the current field changes and just before the form is posted, this function may be set by using the () function. Similarly, the function () will return a pointer to the function that will be called just before the current field changes and just after the form is unposted, this function pointer may be set by using the () function. The () function will return a pointer to the function that will be called just before the form is posted to the screen, this function can be set by calling the () function. The () function will return a pointer to the function that will be called just after the form is unposted from the screen, this function may be set by using the () function. By default, the init and term function pointers are NULL.

Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following error values:

E_OK
The function was successful.

curses(3), forms(3)

The header <form.h> automatically includes both <curses.h> and <eti.h>.

January 1, 2001 NetBSD-9.2