A simple library of bash functions that display menus in the shell window. The functions are using tput from the ncurses package.
Add bash_menus.sh to a folder Load the functions library to your scripts by using . <bash_menus.sh file location>
Example:
. C:/cygwin/bash_menus.sh
In your script, you can call menu functions. First call the menu function of the menu your want, then pass the title followed by the options seperated by a ",".
Examples:
menu1 "Menu Options" "Restart,Save,Exit"
menu2 "VM Options" "Reboot,Delete,Create,Run"
menu3 "Game Settings" "Controls,Key Binds,Gameplay,Multiplayer,Graphics"
Refer to the wiki to see available menus.
Authors Note Please keep in mind this is my first function library, I wrote this to experiment with tput and practise using cursors. I am new to using bash, and programming all together. Feedback is greatly appreciated!