Function ncursesw::menu::set_menu_format
source · [−]Expand description
Sets the maximum display size of the given menu. If this size is too small to
display all menu items, the menu will be made scrollable. If this size is
larger than the menus sub-window and the sub-window is too small to display
all menu items, post_menu()
will fail.
The default format is 16 rows, 1 column. Calling set_menu_format()
with a
menu of None
will change this default. A zero row or column argument to
set_menu_format()
is interpreted as a request not to change the current value.
If menu
is None
then the default value is set.