form_new_page(3X)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– form_new_page(3X) β€” form pagination functions πŸ’–

okay bestie, this one’s from the Library calls manual, section 3X, and it’s all about pagination in curses forms. The functions are set_new_page and new_page, and they’re lowkey giving main-character energy for page breaks. πŸ¦‹

🌸 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 πŸ’…

The function set_new_page sets or resets a flag marking the given field as the beginning of a new page on its form. Slay, that’s literally the whole vibe: you’re flagging a field as a page-start. πŸŽ€

The function new_page is a predicate which tests if a given field marks a page beginning on its form. So it’s the little vibe check that tells you β€œyep, this field starts a new page.” ✨

🫢 RETURN VALUE 🫢

The function new_page returns TRUE or FALSE.

The function set_new_page returns one of the following:

  • E_OK β€” the routine succeeded. iconic behavior, no notes. πŸ‘‘
  • E_CONNECTED β€” the given field is already connected to a form. oop, it’s taken. πŸ’€

🌈 PORTABILITY 🌈

These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. fr fr, that’s the compatibility tea. πŸ“

🧚 AUTHORS 🧚

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. absolute legends. πŸ’œ

🌟 SEE ALSO 🌟

curses(3X) and related pages whose names begin form_ β€” for detailed descriptions of the entry points. iykyk, go read those next bestie. πŸ¦‹


this page is from ncurses 6.5, dated 2024-03-16 β€” bye bestie, go paginate something cute πŸ’–

πŸ“¦ where this page comes from