form_opts(3X)
π form_opts(3X) π
okay bestie, welcome to the form_opts page β it lives in the Library calls section and it's literally all about setting and getting form options. yes we're doing form options today. it's giving administrative but honestly? slay. β¨
πΈ NAME πΈ
set_form_opts, form_opts_on, form_opts_off, form_opts β set and get form options π
π¦ 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, one function at a time π
set_form_optsβ sets all the given form's option bits. and listen: form option bits can be logically "or"-ed together, so you can stack them, periodt. πform_opts_onβ turns on the given option bits and leaves the others alone. not me being polite to the other bits πform_opts_offβ turns off the given option bits and leaves the others alone. same energy, opposite direction. iconic.form_optsβ just returns the form's current option bits. she's a getter, she doesn't judge, she just tells you. π
The following options are defined β and all of them are on by default, so yes, you already have them, no cap:
O_NL_OVERLOADβ overloads theREQ_NEW_LINEforms driver request so that calling it at the end of a field goes to the next field. it's like the field is like "k bye, next" π¦O_BS_OVERLOADβ overloads theREQ_DEL_PREVforms driver request so that calling it at the beginning of a field goes to the previous field. going back bestie, we love a throwback π
π RETURN VALUE π
Except for form_opts, each routine returns one of the following:
E_OKβ the routine succeeded. she ate. βE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). π and yes, go checkerrno(3), that's where the details live.
π PORTABILITY π
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. so if you're kicking it old school on those, she's not there, sorry babe π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. π shoutout to the OGs, fr fr.
π SEE ALSO π
curses(3X), form(3X)
and that's the whole page bestie, no notes, go forth and set those options π
this has been ncurses 6.6, dated 2025-01-18 β form_opts(3X), signing off, mwah π«Άβ¨
π¦ where this page comes from
- alpine 3.24: ncurses-doc 6.6_p20260516-r0 Β· X11
- arch rolling: ncurses 6.6-2 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- Copyright 2018-2024,2025 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