|
偶然发现一个实用程序--dialog,俺研究ing...
把它帖出来,看看如何美化美化枯燥的脚本文件,有会用的兄弟教教大家伙儿,
javalee//home/javalee>dialog
cdialog (ComeOn Dialog!) version 0.9b-20020519
* Display dialog boxes from shell scripts *
Usage: dialog <options> { --and-widget <options> }
where options are "common" options, followed by "box" options
Special options:
[--create-rc "Ifile"]
Common options:
[--aspect <ratio>] [--backtitle <backtitle>] [--beep] [--beep-after]
[--begin <y> <x>] [--cancel-label <str>] [--clear] [--cr-wrap]
[--default-item <str>] [--defaultno] [--exit-label <str>]
[--help-button] [--help-label <str>] [--ignore] [--item-help]
[--max-input <n>] [--no-cancel] [--no-collapse] [--no-kill]
[--no-shadow] [--ok-label <str>] [--print-maxsize] [--print-size]
[--print-version] [--separate-output] [--separate-widget <str>]
[--shadow] [--size-err] [--sleep <secs>] [--stderr] [--stdout]
[--tab-correct] [--tab-len <n>] [--timeout <secs>] [--title <title>]
[--trim] [--version]
Box options:
--calendar <text> <height> <width> <day> <month> <year>
--checklist <text> <height> <width> <list height> <tag1> <item1> <status1>...
--fselect <filepath> <directory> <height> <width>
--gauge <text> <height> <width> [<percent>]
--infobox <text> <height> <width>
--inputbox <text> <height> <width> [<init>]
--menu <text> <height> <width> <menu height> <tag1> <item1>...
--msgbox <text> <height> <width>
--passwordbox <text> <height> <width> [<init>]
--radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...
--tailbox <file> <height> <width>
--tailboxbg <file> <height> <width>
--textbox <file> <height> <width>
--timebox <text> <height> <width> <hour> <minute> <second>
--yesno <text> <height> <width>
Auto-size with height and width = 0. Maximize with height and width = -1.
Global-auto-size if also menu_height/list_height = 0.
详细的解释请man一下吧~~~ |
|