/bash-menu-generator

A simple bash script that will generate menus

Primary LanguageShellMIT LicenseMIT

bash-menu-generator

A simple bash script that will generate menus.

Examples

![alt Bash Menu Options Example](https://raw.github.com/JamieCruwys/bash-menu-generator/master/images/Bash Menu Options.png)

![alt Bash Menu Instructions Example](https://raw.github.com/JamieCruwys/bash-menu-generator/master/images/Bash Menu Instructions.png)

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

Developed By