new_page(3FORM)
β¨ new_page β form pagination functions β¨
okay bestie, welcome to new_page(3FORM) π this one lives in the library-calls section of the manual and it's literally all about pagination in forms. yes. page breaks. in a form. it's giving very "make it fancy" energy and we're obsessed π
πΈ NAME πΈ
set_new_page, new_page β form pagination functions π
π¦ SYNOPSIS π¦
#include <form.h>
int set_new_page(FIELD *field, bool new_page_flag);
bool new_page(const FIELD *field);
π DESCRIPTION π
so here's the tea, bestie π« there are two functions and they're a little duo, like a matched set of earrings.
The function set_new_page sets or resets a flag marking the given field as the beginning of a new page on its form. that's it. that's the whole job. you point at a field, you say "you're the page break now, main character energy π", and the form remembers it.
The function new_page is a predicate which tests if a given field marks a page beginning on its form. so it's the vibe check π β it doesn't change anything, it just looks at the field and tells you yes or no.
β RETURN VALUE β
The function new_page returns TRUE or FALSE. simple. no drama. iconic π
The function set_new_page returns one of the following:
E_OKβ The routine succeeded. slay β¨E_CONNECTEDβ The given field is already connected to a form. π you can't do that bestie, it's already taken.
π PORTABILITY π
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. so if you were hoping for that, nope, not a thing π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. thank you kings π«Ά
π SEE ALSO π
ncurses(3NCURSES) and related pages whose names begin βform_β for detailed descriptions of the entry points. go read the whole fam, iykyk π
and that's the page, bestie π brought to you by ncurses 6.6, dated 2024-03-16 β stay paginated, stay pretty π¦πΈπ
π¦ where this page comes from
- ubuntu resolute: ncurses-doc 6.6+20251231-1 Β· MIT/X11
- ubuntu stonking: ncurses-doc 6.6+20260608-2 Β· MIT/X11
- 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