menu_opts(3X)
π menu_opts(3X) β Library calls π
okay bestie, welcome to the menu options page of the ncurses manual (that's section 3X, library calls, iykyk) β¨ this is where you get and set all the lil toggles that control how your MENU behaves π
β¨ NAME β¨
set_menu_opts, menu_opts_on, menu_opts_off, menu_opts β set and get menu options π«Ά
πΈ SYNOPSIS πΈ
#include <menu.h>
int set_menu_opts(MENU *menu, Menu_Options opts);
Menu_Options menu_opts(const MENU *menu);
int menu_opts_on(MENU *menu, Menu_Options opts);
int menu_opts_off(MENU *menu, Menu_Options opts);
like, the whole squad right there π
π¦ DESCRIPTION π¦
so here's the tea β
The function set_menu_opts sets all the given menu's option bits β and bestie, menu option bits may be logically βorβ-ed together, so go off, stack 'em π
The function menu_opts_on turns on the given option bits, and leaves others alone. it's giving "no notes, everything else stays" β¨
The function menu_opts_off turns off the given option bits, and leaves others alone. same energy, opposite direction π
The function menu_opts returns the menu's current option bits. it's literally just telling you what's up π«Ά
The following options are defined (and yes, all of them are on by default, every single one, no cap):
O_ONEVALUEβ Only one item can be selected for this menu. monogamy menu, we love to see it πO_SHOWDESCβ Display the item descriptions when the menu is posted. show off those little blurbs β¨O_ROWMAJORβ Display the menu in row-major order. rows first, that's the vibe πO_IGNORECASEβ Ignore the case when pattern-matching.ABCandabcare the same girlie, fr fr πΈO_SHOWMATCHβ Move the cursor to within the item name while pattern-matching. cursor said "lemme get a closer look" πO_NONCYCLICβ Don't wrap around next-item and previous-item, requests to the other end of the menu. no looping, no little circles, we stop at the edge πO_MOUSE_MENUβ If user clicks with the mouse and it does not fall on the currently active menu, pushKEY_MOUSEand theMEVENTdata back on the queue to allow processing in another part of the calling program. like, hand that click back to somebody else, it's not mine to handle π
β RETURN VALUE β
Except for menu_opts, each routine returns one of the following:
E_OKβ The routine succeeded. slay πE_SYSTEM_ERRORβ System error occurred (seeerrno(3)). it's giving chaos πE_POSTEDβ The menu is already posted. bestie it's busy, come back later π
π PORTABILITY π
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. so like, know your era π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. absolute icons, both of them π«Ά
π₯ SEE ALSO π₯
curses(3X)menu(3X)
and that's the whole page, bestie!! this one's from ncurses 6.6, dated 2025-01-18, and it lives at menu_opts(3X) β go forth and toggle responsibly πβ¨ππ¦πΈπ
π¦ 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-2015,2016 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms