Use the --text-info option. Tekstinformationsdialogvindue

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

Tekstinformationsdialogvinduet understøtter følgende tilvalg:

<cmd>--filename</cmd>=<var>filename</var>

Angiver en fil, der indlæses i tekstinformationsdialogvinduet.

<cmd>--editable</cmd>

Tillader redigering af den viste tekst. Den redigerede tekst returneres til standard output, når dialogvinduet lukkes.

<cmd>--font</cmd>=<var>FONT</var>

Specifies the text font.

<cmd>--checkbox</cmd>=<var>TEXT</var>

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

<cmd>--html</cmd>

Enable html support.

<cmd>--url</cmd>=<var>URL</var>

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
Eksempel på dialogvindue med tekstinformation Zenity text information dialog example