menu_opts(3MENU)
π menu_opts(3MENU) π
okay bestie, so this is one of those library calls pages β it lives in the 3MENU manual section, which is the ncurses menu library corner of the world. and ngl, the filename says menu_opts but the actual star of the show is item options β¨ like, it's giving "the title card is lying to you, the plot twist is items."
πΈ NAME πΈ
set_item_opts, item_opts_on, item_opts_off, item_opts β set and get menu item options π
π SYNOPSIS π
#include <menu.h>
int set_item_opts(ITEM *item, Item_Options opts);
Item_Options item_opts(const ITEM *item);
int item_opts_on(ITEM *item, Item_Options opts);
int item_opts_off(ITEM *item, Item_Options opts);
β¨ DESCRIPTION β¨
okay so here's the tea, four little functions, all about the option bits of an item. π«Ά
set_item_optsβ this one sets all the given item's option bits. and lowkey the vibe is: menu option bits may be logically "or"-ed together, so you can stack 'em. π₯item_opts_onβ turns on the given option bits, and leaves the others alone. no touching, no meddling, just vibes. πitem_opts_offβ turns off the given option bits, and, you guessed it, leaves the others alone. βοΈitem_optsβ this one doesn't change anything, it just returns the item's current option bits. it's the friend who reads the group chat and reports back. π
π the one (1) defined option bit
there is only one defined option bit mask, and its name is O_SELECTABLE.
when this is on, the item may be selected during menu processing. π― and bestie, listen β this option defaults to on. it's on by default. it woke up like this. π
β RETURN VALUE β
except for item_opts, each routine returns one of the following:
E_OKβ the routine succeeded. slay. πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). not slay. go checkerrno(3), babe. π
π¦ PORTABILITY π¦
these routines emulate the System V menu library. they were not supported on Version 7 or BSD versions. so if you're time-traveling back to those, respectfully, no. π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. legends, fr fr. π«Ά
π SEE ALSO π
ncurses(3NCURSES)menu(3MENU)
and that's the whole page, bestie. go forth and toggle your item option bits responsibly. π
ncurses 6.6 Β· 2025-01-18 Β· mwah, that's the version and the date, sending you off with a little kiss from the 3MENU section πβ¨
π¦ where this page comes from
- ubuntu resolute: ncurses-doc 6.6+20251231-1 Β· MIT/X11
- ubuntu stonking: ncurses-doc 6.6+20260608-2 Β· MIT/X11
- 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