Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.02 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.02 KB

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