mitem_opts(3X)
π mitem_opts β the manual page, but make it cute π
okay bestie, welcome to mitem_opts(3X) from the library calls girlies β¨ this one is all about menu item options β setting them, getting them, turning them on, turning them off. lowkey iconic behaviour tbh.
πΈ 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);
like, four functions, one header, zero drama π
π¦ DESCRIPTION π¦
so. here's the tea β
set_item_optsβ this one sets all the given item's option bits. and yes, menu option bits may be logically "or"-ed together, so you can stack 'em. it's giving toggles, but make it official.item_opts_onβ turns on the given option bits, and leaves all the others alone. it's not nosy, it minds its business π«Άitem_opts_offβ turns off the given option bits, and leaves all the others alone. same energy, opposite direction.item_optsβ just returns the item's current option bits. no notes, no changes, pure information β¨
now for the main character of this whole page: there is only one defined option bit mask, and it's O_SELECTABLE π
when O_SELECTABLE is on, the item may be selected during menu processing. and here's the thing β this option defaults to on. so bestie, it's already slaying unless you personally go turn it off π
π RETURN VALUE π
except for item_opts, each routine returns one of the following:
E_OKβ the routine succeeded. ate, no crumbs π₯E_SYSTEM_ERRORβ system error occurred (seeerrno(3)). not the vibe, go check yourerrnoπ
fyi item_opts doesn't play this game β it hands you back the option bits themselves instead of a status code. don't @ me, that's just how it is.
π PORTABILITY π
these routines emulate the System V menu library. they were not supported on Version 7 or BSD versions. so like, respect the heritage, iykyk π«
π AUTHORS π
Juergen Pfeifer. manual pages and adaptation for new curses by Eric S. Raymond. legends, fr fr π«‘
π SEE ALSO π
curses(3X)menu(3X)
and that's the whole page, bestie π this was ncurses 6.6, dated 2025-01-18, and it lives at mitem_opts(3X). go forth and set your options with main character energy π
β¨
π¦ 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