Jump to content

Draft:Yet Another Dialog

From Wikipedia, the free encyclopedia
Yet Another Dialog
Developer(s)Victor Ananjevsky[1]
Initial releaseNovember 2009[2]
Repositoryhttps://github.com/v1cont/yad
Written in C
Operating systemUnix-like
LicenseGNU General Public License 3.0
Websitehttps://github.com/v1cont/yad

Yet Another Dialog, abbreviated as YAD is a free software program that allows usage of GUI dialogs in shell scripts. It is a more advanced version of Zenity and contains more types of dialogs and more custom buttons. The program is written in GTK, just like Zenity. It allows the execution of GTK dialog boxes in shell scripts.

Description

[edit]

Similarly to the utilities whiptail, dialog, and zenity, YAD allows the creation of GUI in shell scripts with great ease, though it has a bit lower functionality than full-fledged GTK. [3] It follows the usual GNU command line syntax, by using two dashes for options (--), and includes a wide range of features that enables user-friendly interfaces in shell scripts.

Platform Compatibility

[edit]

YAD is mainly designed for Unix-like systems, but there are have been other ways found. Users have built it in custom ways by using WebKit to enable yad --html dialogs. Some have used GtkSourceView for syntax highlighting in their programs which include display of source code.[4]

Examples

[edit]
The output of the following

Dialog Test Program

yad --text="Yet Another Dialog" --title="YAD"

App Selection Dialog

APP = $(yad --app --button="Extra Custom Button")
yad --title="The app you clicked" --text="$APP"

[5]

References

[edit]