Introduction to Linux programming-Dialog -- general Linux technology-Linux programming and kernel information. The following is a detailed description. Introduction to Linux programming-Dialog
Dialog is used in shell scripts. In fact, when you download Linux Kernel, there is
The scripts/lxdialog directory is actually the original dialog code, just Linux kernel to avoid
Do not conflict with the original dialog. Change the name to lxdialog. When you use "make menuconfig"
Dialog is used. In addition, the Slackware installation program is actually used
The dialog tool is used as the interface.
You can call dialog using shell script or perl to provide
User-friendly interface.
With the dialog tool, you can enable
Use Shell Script to complete complex operation interfaces, greatly reducing product development time.
You can use "man dialog" to check its usage. Here we will make some usage and demonstration of dialog.
Dialog -- clear
The entire screen is cleared and left
Dialog -- create-rc file
Dialog supports dynamic planning, which generates a sample.
Dialog [-- title] [-- backtitle]
[-- Clear] [-- separate-output] box-options
-- Title
Title text on the dialog box
-- Backtitle
Desktop background title
Box-options
Dialog currently provides yes/no box, menu box, input box, message box, text
There are nine widgets in box, info box, checklist box, radiolist box, and gauge box.
Exit Status
If you press Yes or OK, 0 is returned. No or Cancel returns 1. If you press ESC or
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.