From 31b3d8ad0f4eee1a3536c20ed6d13062b10ea7bf Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 30 Jan 2025 19:19:45 +0200 Subject: [PATCH] dialog: add page (#15630) Co-authored-by: K.B.Dharun Krishna --- pages/linux/dialog.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/dialog.md diff --git a/pages/linux/dialog.md b/pages/linux/dialog.md new file mode 100644 index 0000000000..46fc4451dd --- /dev/null +++ b/pages/linux/dialog.md @@ -0,0 +1,16 @@ +# dialog + +> Display dialog boxes on the terminal. +> More information: . + +- 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}}`