form_field(3X)
π form_field β make and break connections between fields and forms π
okay so bestie, this is the form_field(3X) library-calls page, and it's literally about hooking fields up to forms and unhooking them. no cap, every fact is still here β just with main-character energy. π
β¨ NAME β¨
form_field β make and break connections between fields and forms
πΈ SYNOPSIS πΈ
#include <form.h>
int set_form_fields(FORM *form, FIELD **fields);
FIELD **form_fields(const FORM *form);
int field_count(const FORM *form);
int move_field(FIELD *field, int frow, int fcol);
π¦ DESCRIPTION π¦
set_form_fieldsβ changes the field pointer array of the given form. the array must be terminated by aNULL. periodt.form_fieldsβ returns the field array of the given form.field_countβ returns the count of fields in form.move_fieldβ moves the given field (which must be disconnected) to a specified location on the screen. iykyk, disconnected is the vibe check here.
π RETURN VALUE π
form_fieldsreturns a pointer (which may beNULL). it does not seterrno. not me checkingerrnofor no reason πfield_countreturnsERRif the form parameter isNULL.set_form_fieldsandmove_fieldreturn one of the following codes on error:E_OKβ the routine succeeded.E_BAD_ARGUMENTβ the routine detected an incorrect or out-of-range argument.E_CONNECTEDβ the field is already connected to a form.E_POSTEDβ the form is already posted.E_SYSTEM_ERRORβ a system error occurred (seeerrno(3)).
π PORTABILITY π
These routines emulate the System V forms library. they were not supported on Version 7 or BSD versions. fr fr, that's the lore.
The SVr4 forms library documentation specifies the field_count error value as -1 (which is the value of ERR). lowkey iconic. β¨
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. giving credit where credit is due π«Ά
π SEE ALSO π
curses(3X), form(3X)
πΈ xoxo, your form_field(3X) bestie β this page is from ncurses 6.5, dated 2024-12-28 π
π¦ 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-2010,2012 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