Apr-22-2019, 07:06 AM
There is a nice library, pythondialog that I use sometimes for such terminal dialogs. The example on their main page is very similar to the above code. It works very well in a bash terminal. The nice thing is that it works also very well over ssh, you can use it on a remote server and have a GUI feeling in your terminal.