Use the --entry option. Діалог вводу тексту

Use the --entry option to create a text entry dialog. Zenity returns the contents of the text entry to standard output.

Діалог вводу тексту підтримує наступні параметри:

<cmd>--text</cmd>=<var>text</var>

Вказує текст, який відображається у діалозі вводу тексту.

<cmd>--entry-text</cmd>=<var>text</var>

Вказує текст, який відображається у полі вводу тексту в діалозі вводу тексту.

<cmd>--hide-text</cmd>

Текст у полі вводу тексту ховається.

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

#!/bin/sh if zenity --entry \ --title="Add new profile" \ --text="Enter name of new profile:" \ --entry-text "NewProfile" then echo $? else echo "No name entered" fi
Приклад діалогу вводу тексту Zenity text entry dialog example