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