1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:22:07 +02:00
tldr/pages/linux/dialog.md
Managor 31b3d8ad0f
dialog: add page (#15630)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-30 22:49:45 +05:30

362 B

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}}