menu_post(3X)
π menu_post β bestie, it's giving "put the menu on the screen"
ok so this page is from menu_post(3X), filed under Library calls, and it's all about post_menu and unpost_menu β the two functions that literally make your menu show up or go away. slay. β¨
π SYNOPSIS π
#include <menu.h>
int post_menu(MENU *menu);
int unpost_menu(MENU *menu);
two functions, one header, zero drama. π«Ά
πΈ DESCRIPTION πΈ
π post_menu
post_menu displays a menu to its associated subwindow. that's it, that's the vibe.
β important bestie note: posting the menu doesn't automatically paint the subwindow on the physical screen. to trigger physical display of the subwindow you gotta userefresh(3X)or some equivalent curses routine β and yes, the implicitdoupdatetriggered by a curses input request will do the job too. iykyk.
also, post_menu resets the selection status of all items. every single one. fresh start, main character energy. π₯
π¦ unpost_menu
unpost_menu erases menu from its associated subwindow. bye bye, menu. π
β¨ RETURN VALUE β¨
these routines return one of the following, and you WILL check them, ok?
E_OKβ the routine succeeded. ate. πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. the audacity.E_POSTEDβ the menu has already been posted. it's already up there, bestie, chill.E_BAD_STATEβ routine was called from an initialization or termination function. wrong place, wrong time πE_NO_ROOMβ menu is too large for its window. you should consider usingset_menu_formatto solve the problem. it's giving "doesn't fit" πE_NOT_POSTEDβ the menu has not been posted. nothing to unpost, nothing to see.E_NOT_CONNECTEDβ no items are connected to the menu. an empty menu is not the serve you think it is.
π PORTABILITY π
these routines emulate the System V menu library. they were not supported on Version 7 or BSD versions β so don't come for them if you're on ancient territory, ngl.
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. legends, fr fr. π«Ά
π SEE ALSO π
curses(3X)menu(3X)
mwah π that's the whole page β this was ncurses 6.5, dated 2024-03-16, and menu_post(3X) is officially done. go post your menu, bestie. π
β¨
π¦ 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-2016,2017 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