linux下编写可视化程序,Linux图形化编程dialog

----------------------------本文地址:https://blog.51cto.com/woonli/2142606

----------------------------参考网址http://linuxcommand.org/lc3_adv_dialog.php

一、简介

dialog是Linux图形化自动脚本编程的工具,实现脚本中图形化,它是一个相当大而复杂的程序(它有近100个命令行选项),但与典型的图形用户界面相比,它是一个真正的轻量级。尽管如此,它仍然具有许多用户界面技巧;

二、使用条件

dialog在多数Linux发行版上已经默认安装如果没有安装,

rpm系列用以下的其中一个:

a、 yum install dialog -y

b、 rpm -vih dialog

deb系统用以下中的一个:

a、sudo apt-get install dialog

b、sudo dpkg -i dialog

三、dianlog帮助信息

dialog有很多命令选项,记忆困难,但如果理解了它,加上帮助信息,你会马上拥有她;dialog的帮助很简单,在终端中输入dialog命令即可;帮助信息如下:

cdialog (ComeOn Dialog!) version 1.3-20160828

Copyright 2000-2015,2016 Thomas E. Dickey

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

* Display dialog boxes from shell scripts *

Usage: dialog { --and-widget }

where options are "common" options, followed by "box" options

Special options:

[--create-rc "file"]

Common options:

[--ascii-lines] [--aspect ] [--backtitle ] [--beep]

[--beep-after] [--begin ] [--cancel-label ] [--clear]

[--colors] [--column-separator ] [--cr-wrap] [--date-format ]

[--default-button ] [--default-item ] [--defaultno]

[--exit-label ] [--extra-button] [--extra-label ]

[--help-button] [--help-label ] [--help-status] [--help-tags]

[--hfile ] [--hline ] [--ignore] [--input-fd ]

[--insecure] [--item-help] [--keep-tite] [--keep-window] [--last-key]

[--max-input ] [--no-cancel] [--no-collapse] [--no-cr-wrap]

[--no-items] [--no-kill] [--no-label ] [--

你可能感兴趣的:(linux下编写可视化程序)