1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 08:22:08 +02:00

dialog: add page (#15630)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Managor 2025-01-30 19:19:45 +02:00 committed by GitHub
parent 0ed803f864
commit 31b3d8ad0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
pages/linux/dialog.md Normal file
View file

@ -0,0 +1,16 @@
# dialog
> Display dialog boxes on the terminal.
> 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}}`