The menus library provides a terminal independent menu system using the curses(3) library. Before using the menus functions the terminal must be set up by curses(3) using the initscr() function or sim...
The menu_back() function returns the value of the background attribute for the menu passed. This attribute is set by the set_menu_back() call. The menu_fore() function returns the value of the foregro...
The pos_menu_cursor() function positions the cursor in the menu window. This function can be called after other curses calls to restore the cursor to it's correct position in the menu.
The menu_driver() function is the guts of the menu system. It takes the commands passed by c parameter and performs the requested action on the menu given. The following commands may be given to the m...
The menu_format() returns the number of rows and columns of items that can be displayed by the menu. The format is set by the set_menu_format() function call. Note that the rows and columns defined he...
The item_init() function returns a pointer to the function that will be called whenever the menu is posted and also just after the current item changes. This is set by the set_item_init() call. The it...
The item_count() menu function returns the number of items currently attached to the menu passed. The menu_items() function returns a pointer to an array of item pointers that represent the menu items...
The current_item() returns a pointer to the current menu item. The set_current_item() can be used to set this to the item give. The item_index() function returns the index number in the array of items...
The item_description() menu function returns the description string associated with the passed item. The item_name() function returns the name string associated with the passed item.
The free_item() function destroys the item and frees all allocated storage for that item. The new_item() allocates storage for a new item then copies in the item name and description for the new item....
The item_opts() function returns the options currently set for the given item. The item_opts_off() function turns off the options passed in opts for the item passed. The item_opts_on() function turns ...
The item_userptr() function returns the value of the user defined pointer for the given item, this pointer is defined by the set_item_userptr() function.
The item_value() function returns value of the item. If the item has been selected then this value will be TRUE. The value can also be set by calling set_item_value() to set the value to a defined sta...