form_opts(3X)

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

🌸 form_opts(3X) 🌸

okay so this is the Library calls page for form_opts(3X), and bestie, if you're here for form options you are literally in the right place. πŸ’… no cap.


✨ NAME ✨

set_form_opts, form_opts_on, form_opts_off, form_opts β€” set and get form options. periodt.

πŸŽ€ SYNOPSIS πŸŽ€

#include <form.h>

int set_form_opts(FORM *form, Field_Options opts);
Field_Options form_opts(const FORM *form);

int form_opts_on(FORM *form, Field_Options opts);
int form_opts_off(FORM *form, Field_Options opts);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, bestie: set_form_opts sets all the given form's option bits (and yes, form option bits may be logically β€œor”-ed together, iykyk). ✨

form_opts_on turns on the given option bits, and leaves others alone. form_opts_off turns off the given option bits, and leaves others alone. form_opts returns the form's current option bits. lowkey iconic.

The following options are defined (and yes, all are on by default):

  • O_NL_OVERLOAD β€” Overload the REQ_NEW_LINE forms driver request so that calling it at the end of a field goes to the next field. πŸŽ€
  • O_BS_OVERLOAD β€” Overload the REQ_DEL_PREV forms driver request so that calling it at the beginning of a field goes to the previous field. πŸ¦‹

πŸ’– RETURN VALUE πŸ’–

Except for form_opts, each routine returns one of the following:

  • E_OK β€” The routine succeeded. slay. βœ…
  • E_SYSTEM_ERROR β€” System error occurred (see errno(3)). 😭

🌈 PORTABILITY 🌈

These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. ngl, that's the whole lore.

πŸ‘‘ AUTHORS πŸ‘‘

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. absolute icons. 🫢

⭐ SEE ALSO ⭐

  • curses(3X)
  • form(3X)

πŸ’– from ncurses 6.5, dated 2025-01-18 β€” that's the source/version and date sign-off, bestie. go set some form options and ate. periodt. 🫢

πŸ“¦ where this page comes from