Basicmenu is a an open source library coded in C, allows the programmer to create and display a menu easily in his/her console application on linux and mac os x, works with C/C++ programs.
There is no installation required, you need just to download the basicmenu.h file, include it in your code then start use the libray :)
1 #include "basicmenu.h"
To use this library , you have just to learn about some basic functions
First you need to tell the program that uses the library to do this, invoke
startBasicMenu() function in the beginning of the main.
To create a new menu you need to declare it with its type:
1 custom_Menu* mymenu;
To initialize it with the
1 init_new_menu (&mymenu);
Any menu, needs to have at least tow items, to add a new item to the menu use the
1 2 addNewItem (&mymenu , "Choice number one!"); addNewItem (&mymenu , "Choice number tow!");
You can add unlimited number of items, but be careful to don’t exceed the console size :)
see the TODO list.
To display the menu you need to invoke the
put_menu() function. example: Link
- Allow the programmer to add unlimited items to the menu.
- Add a scroll menu option.
- Add the maximum of items to shown on the menu.
for more functions and examples please visit the documentation
Are you a developer? Fork me on GitHub, I’ll be very happy to take pull requests from others, Go ahead and fork me.
for code documentation please visit Documentation page