I'm looking for a tool for displaying inline menus in the shell which can be navigated with arrow-keys and enter. By "inline", I mean that the menu is displayed within the normal flow of stdout text, not in a pop-up dialog on top of everything.
I only found that post trying to address that, but it only mentions either custom scripting or non-inline/pop-up solutions (like
What I am looking for is a robust package that I could simply install within a Docker image using
npm install -g and invoke from my scripts with a list of choices and get back the user's selected item.
In nodeJS, I am using Inquirer which offers not only that kind of menus, but also all sorts of inputs.
Here's an example screenshot of such an inline menu.
The tool does not have to be written in shell script. It can be a binary/script written in any language, as long as it's rather easy to install using
curl. Even a nodeJS tool would be fine, as long as it's invokable from a shell script to pass it the choices.