form_hook(3X)
π form_hook π
okay bestie, welcome to the form_hook(3X) Library calls page. This is literally the hook-setting manual page, and itβs giving βlet the form call you backβ energy. No cap. π
πΈ NAME πΈ
form_hook β set hooks for automatic invocation by applications. Yes bestie, itβs the hook-setting page, thatβs the whole vibe.
β¨ 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. Translation: form_driver does its automatic thing, and these hooks are the little βhey, call my function hereβ moments. Obsessed.
π set_field_init π
set_field_init sets a hook to be called at form-post time and each time the selected field changes (after the change). So that one fires after the change β the after-party, not the pre-game.
π field_init π
field_init returns the current field init hook, if any (NULL if there is no such hook). No hook? You get NULL, and thatβs the tea.
πΈ set_field_term πΈ
set_field_term sets a hook to be called at form-unpost time and each time the selected field changes (before the change). This one is the before-the-change bestie.
π¦ field_term π¦
field_term returns the current field term hook, if any (NULL if there is no such hook). Again: no hook means NULL, periodt.
π set_form_init π
set_form_init sets a hook to be called at form-post time and just after a page change once it is posted. Page change, but posted first β iykyk.
π§ form_init π§
form_init returns the current form init hook, if any (NULL if there is no such hook). If itβs not there, itβs NULL, bestie.
π set_form_term π
set_form_term sets a hook to be called at form-unpost time and just before a page change once it is posted. Just before the page change β highkey important.
π form_term π
form_term returns the current form term hook, if any (NULL if there is no such hook). NULL when thereβs no hook, fr fr.
π RETURN VALUE π
Routines that return pointers return NULL on error. Other routines return one of the following:
E_OKβ the routine succeeded. slay.E_SYSTEM_ERRORβ system error occurred (seeerrno(3)). oof, check thaterrno(3), bestie.
π PORTABILITY π
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. So Version 7 and BSD? Not supported, no cap β thatβs a no-go.
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. Legend behaviour, honestly.
π«Ά SEE ALSO π«Ά
curses(3X)form(3X)
This page came from ncurses 6.5, dated 2024-12-28. Bye bestie β go set those hooks and slay π
β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2007,2010 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms