form_new_page(3X)
π form_new_page β bestie edition π
okay so this is the pagination corner of the form library, manual section 3X, and it's genuinely so much simpler than it sounds. two functions. one flag. we love a low-effort icon. β¨
πΈ NAME πΈ
set_new_page, new_page β the form pagination girlies π
π SYNOPSIS π
#include <form.h>
int set_new_page(FIELD *field, bool new_page_flag);
bool new_page(const FIELD *field);
π¦ DESCRIPTION π¦
set_new_page does the thing: it sets or resets a flag that marks the given field as the beginning of a new page on its form. so basically you're telling the form "this field? yeah, she starts a fresh page." or un-telling it. your call, bestie. π
new_page is a predicate β fancy word, chill job β and it tests if a given field marks a page beginning on its form. that's it. that's the whole function. main character energy with like, zero dialogue. π
β RETURN VALUE β
new_page gives you back TRUE or FALSE. no surprises, no drama. π
set_new_page returns one of these:
E_OKβ the routine succeeded. slay. πE_CONNECTEDβ the given field is already connected to a form. like, she's taken. can't do it. π
π§ PORTABILITY π§
these routines emulate the System V forms library. they were not supported on Version 7 or BSD versions. so if you're on those, no cap, you're out of luck. π
π AUTHORS π
Juergen Pfeifer. manual pages and adaptation for new curses by Eric S. Raymond. legends, both of them. π«Ά
π SEE ALSO π
curses(3X) β and any related pages whose names begin βform_β β for detailed descriptions of the entry points. go read those if you want the full lore. iykyk. πβ¨
and that's the whole page, babes! π this was pulled from ncurses 6.6, dated 2024-03-16 β so you know it's fresh-ish. go forth and paginate. π
π¦ where this page comes from
- alpine 3.24: ncurses-doc 6.6_p20260516-r0 Β· X11
- arch rolling: ncurses 6.6-2 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms