Files
cheatsheet-tldr/tldr/linux/dialog
2025-09-07 00:20:52 +00:00

27 lines
512 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`