Pure BASH interactive CLI/TUI menu (single-/muliti-select/checkboxes)

First version. To be refactord.

asciicast

https://gist.github.com/blurayne/f63c5a8521c0eeab8e9afd8baa45c65e

Inspired by

Notes

  • This is a hacky first implementation for my shell tools/dotfiles (ZSH)
  • Intention is to use it for CLI wizards (my aim is NOT a full blown curses TUI window interface)
  • I converted TPUT to ANSII-sequences to spare command executions (e.g. tput ed | xxd --plain)

Permission to copy and modify is granted under the Creative Commons Attribution 4.0 license