First version. To be refactord.
https://gist.github.com/blurayne/f63c5a8521c0eeab8e9afd8baa45c65e
Inspired by
- https://serverfault.com/questions/144939/multi-select-menu-in-bash-script
- partly based on
https://www.bughunter2k.de/blog/cursor-controlled-selectmenu-in-bash by on Ingo Hollmann
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