NAME
ffoorrmmhhooookk - set hooks for automatic invocation by applications
SYNOPSIS
##iinncclluuddee <
int setfieldinit(FORM *form, void (*func)(FORM *)); void (*)(FORM *) fieldinit(const FORM *form); int setfieldterm(FORM *form, void (*func)(FORM *)); void (*)(FORM *) fieldterm(const FORM *form); int setforminit(FORM *form, void (*func)(FORM *)); void (*)(FORM *) forminit(const FORM *form); int setformterm(FORM *form, void (*func)(FORM *)); void (*)(FORM *) formterm(const FORM *form);> DESCRIPTION
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by ffoorrmmddrriivveerr.The function sseettffiieellddiinniitt sets a hook to be called at form-post time
and each time the selected field changes (after the change). ffiieellddiinniitt returns the current field init hook, if any (NNUULLLL if there is no such hook).The function sseettffiieellddtteerrmm sets a hook to be called at form-unpost
time and each time the selected field changes (before the change). ffiieellddtteerrmm returns the current field term hook, if any (NNUULLLL if there is no such hook).The function sseettffoorrmmiinniitt sets a hook to be called at form-post time
and just after a page change once it is posted. ffoorrmmiinniitt returns the current form init hook, if any (NNUULLLL if there is no such hook).The function sseettffoorrmmtteerrmm sets a hook to be called at form-unpost time
and just before a page change once it is posted. ffoorrmmiinniitt returns the current form term hook, if any (NNUULLLL if there is no such hook). RREETTUURRNN VVAALLUUEE Routines that return pointers return NNUULLLL on error. Other routines return one of the following: EEOOKK The routine succeeded. EESSYYSSTTEEMMEERRRROORR System error occurred (see eerrrrnnoo).SEE ALSO
ccuurrsseess(3X), ffoorrmm(3X). NNOOTTEESS The header file <> automatically includes the header file < >. PPOORRTTAABBIILLIITTYY These routines emulate the System V forms library. They were not sup-
ported on Version 7 or BSD versions. AUTHORS Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. formhook(3X)