dialog --clear
dialog --create-rc file
dialog --print-maxsize
dialog common-options box-options
Dialog is a program that will let you to present a variety of questions or display messages using dialog boxes from a shell script. These types of dialog boxes are implemented (though not all are necessarily compiled into dialog):
calendar, checklist, dselect, editbox, form, fselect, gauge, infobox, inputbox, inputmenu, menu, mixedform, mixedgauge, msgbox (message), passwordbox, passwordform, pause, progressbox, radiolist, tailbox, tailboxbg, textbox, timebox, and yesno (yes/no).
You can put more than one dialog box into a script:
-
Use the "--and-widget" token to force Dialog to proceed to the next dialog unless you have pressed ESC to cancel, or
-
Simply add the tokens for the next dialog box, making a chain. Dialog stops chaining when the return code from a dialog is nonzero, e.g., Cancel or No (see DIAGNOSTICS).
Some widgets, e.g., checklist, will write text to dialog's output. Normally that is the standard error, but there are options for changing this: "--output-fd", "--stderr" and "--stdout". No text is written if the Cancel button (or ESC) is pressed; dialog exits immediately in that case.
---
Attachment | Size | Date |
---|---|---|
dialog-1.3.20171209-1.armv7hl.rpm | 528.49 KB | 08/04/2018 - 02:37 |
dialog-1.3.20171209-1.i486.rpm | 511.8 KB | 08/04/2018 - 22:34 |
Latest version (1.3.20171209) compiled for SFOS (armv7hl + i486)
Recent comments