Use the --text-info option to create a text information dialog.
Диалоговое окно текстовой информации поддерживает следующие параметры:
Указывает имя файла, который будет загружен в окно текстовой информации.
Позволяет редактирование изображённого текста. Отредактированный текст возвращается в стандартный поток, после того, как диалоговое окно будет закрыто.
Specifies the text font.
Enable a checkbox for use like a 'I read and accept the terms.'
Enable html support.
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
Есть замечание? Нашли ошибку? Считаете инструкции неясными? Отправьте отзыв об этой странице.