form_field_info(3X)
β¨ NAME β¨
okay so bestie, welcome to form_field_info(3X) from the Library calls section β this one is literally about retrieving field characteristics. π
dynamic_field_info,field_infoβ retrieve field characteristics
π¦ SYNOPSIS π¦
#include <form.h>
int field_info(const FIELD *field,
int *rows, int *cols,
int *frow, int *fcol,
int *nrow, int *nbuf);
int dynamic_field_info(const FIELD *field,
int *rows, int *cols, int *max);
π DESCRIPTION π
The function field_info returns the sizes and other attributes passed in to the field at its creation time. Itβs giving βreceipts from when this field was bornβ energy. π§Ύβ¨
The attributes are:
- height
- width
- row of upper-left corner
- column of upper-left corner
- number off-screen rows
- number of working buffers
The function dynamic_field_info returns the actual size of the field, and its maximum possible size. If the field has no size limit, the location addressed by the third argument will be set to 0. No cap, it just gets zeroed out. π«Ά
A field can be made dynamic by turning off the O_STATIC option with field_opts_off. Thatβs the lowkey switch-up that unlocks dynamic behavior. π₯
πΈ RETURN VALUE πΈ
These routines return one of the following:
E_OKβ the routine succeeded. slay.E_SYSTEM_ERRORβ System error occurred (seeerrno(3)). πE_BAD_ARGUMENTβ Routine detected an incorrect or out-of-range argument. not the vibe. π
π PORTABILITY π
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. history lesson, but make it niche. π
A null (zero pointer) is accepted for any of the return values, to ignore that value. Not all implementations allow this, e.g., Solaris 2.7 does not. so yeah, check your implementationβs vibe first. π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. icons only. π«‘
π SEE ALSO π
curses(3X) and related pages whose names begin βform_β for detailed descriptions of the entry points. iykyk, go read the whole form_ family. ππ
π cute little sign-off tea: this page is from ncurses 6.5, dated 2024-03-16, and itβs the form_field_info(3X) manual page. periodt. β¨
π¦ 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,2015 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