mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 01:53:16 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/dialog
Normal file
21
tldr/linux/dialog
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user