Use the --text-info option.

# 文本信息框

Use the --text-info option to create a text information dialog.

文本信息框支持以下选项：

# --filename=filename

指定一个加载到文本信息框里的文件。

# --editable

显示的文本允许编辑，当对话框关闭后，编辑后的文本显示到显示器上。

# --font=FONT

Specifies the text font.

# --checkbox=TEXT

Enable a checkbox for use like a 'I read and accept the terms.'

# --html

Enable html support.

# --url=URL

Sets an url instead of a file. Only works if you use --html option.

The following example script shows how to create a text information dialog:

#!/bin/sh

# You must place file "COPYING" in same folder of this script. FILE=`dirname $0`/COPYING

zenity --text-info \ --title="License" \ --filename=$FILE \ --checkbox="I read and accept the terms."

case $? in 0) echo "Start installation!" # next step ;; 1) echo "Stop installation!" ;; -1) echo "An unexpected error has occurred." ;; esac

# 文本信息框范例

Zenity
text information dialog example