form_opts(3X)
πΈ 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 theREQ_NEW_LINEforms driver request so that calling it at the end of a field goes to the next field. πO_BS_OVERLOADβ Overload theREQ_DEL_PREVforms 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 (seeerrno(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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2024,2025 Thomas E. Dickey
- Copyright 1998-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms