Skip to content

gjenning/bash-menu-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-menu-generator

A simple bash script that will generate menus.

Examples

alt Bash Menu Options Example

alt Bash Menu Instructions Example

Usage

generateDialog

Parameter 1: "options" to use [1] or "instructions" for 1.
Parameter 2: Title for the menu
Parameter 3: Array of options or instructions to show

e.g. generateDialog "options" "Choose an option" "${options[@]}"

Configuration

  • symbol - Which character to be used to create the menu
  • paddingSymbol - Character to space and center the text
  • lineLength - How wide the menu should be
  • charsToOption - How much padding you want from the sides of the menu
  • charsToName - How much padding you want around the text

About

A simple bash script that will generate menus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%