form_page(3X)
π NAME π
okay so welcome to form_page(3X), a Library calls page that is literally all about the set-and-get form page number vibe: form_page β set and get form page number. π«Ά
β¨ SYNOPSIS β¨
bestie, grab the header first, then it's giving:
#include <form.h>
int set_current_field(FORM *form, FIELD *field);
FIELD *current_field(const FORM *form);
int unfocus_current_field(FORM *form);
int set_form_page(FORM *form, int n);
int form_page(const FORM *form);
int field_index(const FIELD *field);
π¦ DESCRIPTION π¦
okay so hereβs the friend-group rundown, no cap:
set_current_fieldsets the current field of the given form;current_fieldreturns the current field of the given form. iconic duo behavior, honestly. πunfocus_current_fieldremoves the focus from the current field of the form. In such state, inquiries viacurrent_fieldshall return aNULLpointer. yes, thatβs the whole mood. πset_form_pagesets the formβs page number β it goes to pagenof the form. slay.form_pagereturns the formβs current page number. very main character energy. πfield_indexreturns the index of the field in the field array of the form it is connected to. It returnsERRif the argument is the null pointer or the field is not connected. periodt. π
π RETURN VALUE π
Except for form_page, each routine returns one of the following:
E_OKβ the routine succeeded. yay bestie πΈE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. rude, but ok πE_BAD_STATEβ routine was called from an initialization or termination function. wrong moment, babe.E_INVALID_FIELDβ contents of a field are not valid. vibe check failed πE_REQUEST_DENIEDβ the form driver could not process the request. denied, not today. πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). go check that, fr fr.
π PORTABILITY π
- These routines emulate the System V forms library. old-school but make it cute.
- They were not supported on Version 7 or BSD versions. ngl, not their era.
- The
unfocus_current_fieldfunction is an ncurses extension. special little ncurses exclusive β¨
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. give them their flowers, honestly π
π₯ SEE ALSO π₯
curses(3X)form(3X)
go peek at those if youβre feeling curious, iykyk π
mwah π β this adorable little page is from ncurses 6.5, dated 2024-12-28, and its page tag is form_page(3X). signing off, bestie π¦π
π¦ 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,2016 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