HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dialog — Display dialog boxes on the terminal. See also: `gum`, `whiptail`. More information: <https://manned

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theboxesterminaldialogcommandclidisplay
linux

Problem

How to use the dialog command: Display dialog boxes on the terminal. See also: gum, whiptail. More information: <https://manned.org/dialog>.

Solution

dialog — Display dialog boxes on the terminal. See also: gum, whiptail. More information: <https://manned.org/dialog>.

Display a message:
dialog --msgbox "{{Message}}" {{height}} {{width}}


Prompt the user for text:
dialog --inputbox "{{Enter text:}}" {{8}} {{40}} 2>{{output.txt}}


Prompt the user for a yes/no question:
dialog --yesno "{{Continue?}}" {{7}} {{40}}


Display help:
dialog

Code Snippets

Display a message

dialog --msgbox "{{Message}}" {{height}} {{width}}

Prompt the user for text

dialog --inputbox "{{Enter text:}}" {{8}} {{40}} 2>{{output.txt}}

Prompt the user for a yes/no question

dialog --yesno "{{Continue?}}" {{7}} {{40}}

Display help

dialog

Context

tldr-pages: linux/dialog

Revisions (0)

No revisions yet.