mitem_value(3X)
π¦ mitem_value(3X) β Library calls, but make it cute π¦
okay so bestie, we are literally in mitem_value(3X) territory, and itβs giving βmenu item values but make it a group chat.β Come get your set_item_value and item_value tea π
π NAME π
set_item_value, item_value β set and get menu item values. Slay, thatβs the whole vibe: one sets, one gets, no cap.
πΈ SYNOPSIS πΈ
#include <menu.h>
int set_item_value(ITEM *item, bool value);
bool item_value(const ITEM *item);
β¨ DESCRIPTION β¨
okay so hereβs the situation, bestie. If you turn off the menu option O_ONEVALUE (e.g., with set_menu_opts or menu_opts_off; see menu_opts(3X)), the menu becomes multi-valued; that is, more than one item may simultaneously be selected. iconic behavior, honestly.
In a multi-valued menu (the page writes multi_valued in that spot, iykyk), you can use set_item_value to select the given menu item β second argument TRUE β or deselect it β second argument FALSE. periodt.
π RETURN VALUE π
The function set_item_value returns one of the following, and we are listing every single one because we donβt skip details in this house:
E_OKβ the routine succeeded. yes bestie, we love a success story β¨E_SYSTEM_ERRORβ system error occurred (seeerrno(3)). go checkerrno(3), fr fr.E_REQUEST_DENIEDβ the menu driver could not process the request. the menu driver said βnot today,β lowkey π
π¦ PORTABILITY π¦
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. so if youβre on Version 7 or BSD, this is a no from the universe, ngl π¨
π AUTHORS π
Shoutout to Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. main character energy from both of them, honestly π«Ά
π SEE ALSO π
go check curses(3X) and menu(3X) β the lore continues, bestie π
signed, sealed, sparkled by ncurses 6.5 on 2024-03-16 for mitem_value(3X) π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 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