dialog
TLDR
Display a message
$ dialog --msgbox "[Message]" [height] [width]
Prompt for text input$ dialog --inputbox "[Enter text:]" 8 40 2>[output.txt]
Prompt for yes/no question$ dialog --yesno "[Continue?]" 7 40
Display help$ dialog
SYNOPSIS
dialog [options] box-type [box-options]
DESCRIPTION
dialog displays dialog boxes from shell scripts. It supports various widget types including message boxes, input boxes, menus, checklists, and file selection dialogs.
Output is written to stderr (or specified file), and exit status indicates button pressed.
PARAMETERS
--msgbox text height width
Display message with OK button--yesno text height width
Yes/No question dialog--inputbox text height width [init]
Text input dialog--menu text height width menu-height tag item...
Menu selection--checklist text height width list-height tag item status...
Checkbox selection--radiolist
Radio button selection--title title
Set dialog title
CAVEATS
Output goes to stderr by default; redirect with 2>file. Exit status: 0=OK/Yes, 1=Cancel/No, 255=ESC. For graphical dialogs, see zenity or kdialog.


