Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

bash_menus

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!

About

A simple library of bash functions that display menus in the shell window. The functions are using tput from the ncurses package.

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages