script-dialog
script-dialog copied to clipboard
Allows a bash script to use the best available TUI or GUI dialog system
Zenity dialogs have bad habit of making the window very wide if you have a long text string. I like to set the width so that the text wraps on...
Only the base text interface, maybe TUIs are cancelable due to the CTRL+C / CTRL+Z shortcuts. Should add cancel buttons and let the script kill itself.
Messagebox that says "press any key" for raw CLI, "press okay" for TUI and "click okay" for GUI
Switch from `#!/bin/bash` to `#!/usr/bin/env bash`