Skip to content

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

Notifications You must be signed in to change notification settings

lucaswhitaker22/bash_menus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages