🖋️
Docs
  • Zenity
  • Introduction
  • dialogs
    • Calendar Dialog
    • File Selection Dialog
    • List Dialog
    • Message Dialogs
    • Notification Icon
    • Text Entry Dialog
    • Progress Dialog
    • Text Information Dialog
Powered by GitBook
On this page

Was this helpful?

  1. dialogs

Text Entry Dialog

  • Zenity Manual

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

The text entry dialog supports the following options: --text=text

Specifies the text that is displayed in the text entry dialog. --entry-text=text

Specifies the text that is displayed in the entry field of the text entry dialog.--hide-text

Hides the text in the entry field of the text entry dialog.

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

        #!/bin/sh

        if zenity --entry \
        --title="Add an Entry" \
        --text="Enter your _password:" \
        --entry-text "password" \
        --hide-text
          then echo $?
          else echo "No password entered"
        fi

Figure 10 Text Entry Dialog Example

PreviousNotification IconNextProgress Dialog

Last updated 4 years ago

Was this helpful?