hook


HOME

hook

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

form_hook − set hooks for automatic invocation by applications

SYNOPSIS

#include <form.h>
int set_field_init(FORM *form, Form_Hook func);
Form_Hook field_init(const FORM *form);
int set_field_term(FORM *form, Form_Hook func);
Form_Hook field_term(const FORM *form);
int set_form_init(FORM *form, Form_Hook func);
Form_Hook form_init(const FORM *form);
int set_form_term(FORM *form, Form_Hook func);
Form_Hook form_term(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 form_driver.

The function set_field_init sets a hook to be called at form-post time and each time the selected field changes (after the change). field_init returns the current field init hook, if any (NULL if there is no such hook).

The function set_field_term sets a hook to be called at form-unpost time and each time the selected field changes (before the change). field_term returns the current field term hook, if any (NULL if there is no such hook).

The function set_form_init sets a hook to be called at form-post time and just after a page change once it is posted. form_init returns the current form init hook, if any (NULL if there is no such hook).

The function set_form_term sets a hook to be called at form-unpost time and just before a page change once it is posted. form_init returns the current form term hook, if any (NULL if there is no such hook).

RETURN VALUE

Routines that return pointers return NULL on error. Other routines return one of the following:

E_OK

The routine succeeded.

E_SYSTEM_ERROR

System error occurred (see errno).

SEE ALSO

ncurses(3NCURSES), form(3FORM).

NOTES

The header file <form.h> automatically includes the header file <curses.h>.

PORTABILITY

These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.

AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.




More Linux Commands

manpages/path_resolution.7.html
path_resolution(7) - how a pathname is resolved to a file...
Some UNIX/Linux system calls have as parameter one or more filenames. A filename (or pathname) is resolved as follows. Step 1: start of the resolution process I

manpages/Tcl_GetDoubleFromObj.3.html
Tcl_GetDoubleFromObj(3) - manipulate Tcl objects as floating
These procedures are used to create, modify, and read Tcl objects that hold double-precision floating-point values. Tcl_NewDoubleObj creates and returns a new T

manpages/gnutls_db_remove_session.3.html
gnutls_db_remove_session(3) - API function - Linux man page
This function will remove the current session data from the session database. This will prevent future handshakes reusing these session data. This function shou

manpages/XcmsRGBi.3.html
XcmsRGBi(3) - Xcms color structure - Linux manual page......
The XcmsColor structure contains a union of substructures, each supporting color specification encoding for a particular color space. SEE ALSO XcmsAllocColor(3)

manpages/c2ph.1.html
c2ph(1) - Dump C structures as generated from "cc -g -S" sta
The following is the old c2ph.doc documentation by Tom Christiansen &lt;tchrist@perl.com&gt; Date: 25 Jul 91 08:10:21 GMT Once upon a time, I wrote a program called p

manpages/Tcl_LogCommandInfo.3.html
Tcl_LogCommandInfo(3) - retrieve or record information about
The Tcl_SetReturnOptions and Tcl_GetReturnOptions routines expose the &amp;#9474; same capabilities as the return and catch commands, respectively, in &amp;#9474; the f

manpages/glutStrokeWidth.3.html
glutStrokeWidth(3) - (unknown subject) - Linux manual page
glutStrokeWidth returns the width in modeling units of a stroke character in a supported stroke font. While the width of characters in a font may vary (though f

manpages/lrintf.3.html
lrintf(3) - round to nearest integer - Linux manual page....
These functions round their argument to the nearest integer value, using the current rounding direction (see fesetround(3)). Note that unlike the rint(3) family

manpages/sane-usb.5.html
sane-usb(5) - USB configuration tips for SANE (Man Page)....
This manual page contains information on how to access scanners with a USB interface. It focusses on two main topics: getting the scanner detected by the operat

manpages/envz_add.3.html
envz_add(3) - environment string support - Linux man page...
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length, see argz_add(3). An envz vector is a special argz

manpages/pos_menu_cursor.3menu.html
pos_menu_cursor(3menu) - position a menu's cursor (ManPage)
pos_menu_cursor.3menu - The function pos_menu_cursor restores the cursor to the current position associated with the menus selected item. This is useful after c

manpages/xzdiff.1.html
xzdiff(1) - compare compressed files - Linux manual page....
xzcmp and xzdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), or bzip2(1). All options specified are passed directly to cmp(1) or





We can't live, work or learn in freedom unless the software we use is free.