Skip to content

Commit 507792f

Browse files
committed
Posix version 11.0.0
1 parent a3199d3 commit 507792f

File tree

6 files changed

+185
-143
lines changed

6 files changed

+185
-143
lines changed

Diff for: README

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Project EasyBashGUI.
33

44
Intro.
55

6-
EasyBashGUI is a bash function library that aims to give simple GUI functions using yad, gtkdialog, kdialog, zenity, Xdialog, dialog, or whiptail depending on KDE or GNOME running or not, Yad, Gtkdialog or Xdialog installed or not and X server running or not ( (c)dialog or whiptail is the minimum ). So, if bash programmer writes: "message 'Thanks for using this program' ", he has not to worry in which environment his program runs: it is enough there is at least (c)dialog or whiptail installed, and program will work as expected. Obviously, if user has KDE, GNOME, or gtkdialog/Xdialog also installed ( and he's in a X session ), program will have "an other look", but logical flow is exactly the same.
7-
You can force widget usage through "supermode" variable ( possible values: "gtkdialog", "kdialog", "zenity", "Xdialog", "dialog", "none" ;
6+
EasyBashGUI is a bash function library that aims to give simple GUI functions using yad, gtkdialog, kdialog, zenity, Xdialog, dialog, or whiptail depending on KDE or GNOME running or not, Yad, Gtkdialog or Xdialog installed or not and X server running or not ( (c)dialog or whiptail is the minimum ). So, if bash programmer writes: "message 'Thanks for using this program' ", he has not to worry in which environment his program runs: it's enough there is at least (c)dialog or whiptail installed, and program will work as expected. Obviously, if user has KDE, GNOME, or gtkdialog/Xdialog also installed ( and he's in a X session ), program will have "an other look", but logical flow is exactly the same.
7+
You can force widget usage through "supermode" variable ( possible values: "yad", "gtkdialog", "kdialog", "zenity", "Xdialog", "dialog", "none" ;
88
e.g.: >export supermode="kdialog" && source easybashgui && message Hello ).
99
NOTE on "none" mode: you have to make sure STDERR *is not* redirected, in order to see shell boxes in your terminal.
1010

@@ -105,7 +105,7 @@ input -> 1 "<label 1>" "[init 1]" => ( 2-3 arguments, box output to "${
105105
input -> 2 "[label 1]" "[init 1]" "[label 2]" "[init 2]" => ( 5 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
106106
input -> 3 "[label 1]" "[init 1]" "[label 2]" "[init 2]" "[label 3]" "[init 3]" => ( 7 arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR )
107107
menu -> "[item 1]" ... "[item n]" => ( [n] arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (%)
108-
tagged_menu -> "[tag 1]" "[item 1]" ... "[tag n]" "[item n]" => ( [n*2] arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (%)
108+
tagged_menu -> "[item 1]" "[tag 1]" ... "[item n]" "[tag n]" => ( [n*2] arguments, box output to "${dir_tmp}/${file_tmp}" and STDERR ) (%)
109109
list -> <+|->"[item 1]" ... <+|->"[item n]" => ( [n] arguments, optionally prefixed by "+"(plus) or "-"(minus), box output to "${dir_tmp}/${file_tmp}" and STDERR ) (%)
110110
progress -> "[text]" => ( percent with or without '%' in STDIN, 1 argument )
111111
progress -> "[text]" "[elements number]" => ( "PROGRESS" string in STDIN, 2 arguments )
@@ -116,7 +116,7 @@ adjust -> "[text]" "[min]" "[init]" "[max]" => ( 4 arguments, box output to "${d
116116
(^) = text function write text in STDIN to file "${dir_tmp}/${file_tmp}" and (only) for kdialog, zenity, and Xdialog you can also edit text to write ;
117117
(@) = "wait_for" function create a window with a text and returns control to main program... after a job, you can close the window throught function "terminate_wait_for" ( needs no argument ) ;
118118
(#) = take care that if you are in "console mode" or without X, throught cdialog, selection is done by SPACE key, and NOT by enter key : remember it ;
119-
(%) = "menu" and "list" functions differ about choices: menu allows single choice, list allows multiple choice ; since 7.1.0 version you can use tagged_menu(): it outputs tags (e.g.: "tagged_menu 1 A 2 B" -> if user selects "A" then function outputs "1" );
119+
(%) = "menu" and "list" functions differ about choices: menu allows single choice, list allows multiple choice ; since 7.1.0 version you can use tagged_menu(): it outputs tags (e.g.: "tagged_menu 1 A 2 B" -> if user selects tag "A" then function outputs item "1" );
120120

121121
Since EasyBashGUI v.1.2.4, all windows functions support options "<-w|-width> [integer]", and "<-h|-height> [integer]" for custom window size:
122122
E.g.: >alert_message -w 400 -h 340 "Error!"
@@ -210,13 +210,14 @@ EasyBashGUI sets gtkdialog output statements as variables through "eval". This w
210210

211211

212212
Note on Git.
213-
Since 8.0.0 version, project is housed at github ( https://github.com/BashGui )
213+
Since 8.0.0 version, project is housed at github ( https://github.com/BashGui ). Thanks, Github people! :)
214214

215215

216216

217217
Credits.
218218

219219
Thanks to Bash, Yad, Gtkdialog, Xdialog, Kdialog, Zenity, Cdialog, and Whiptail authors, this library was nothing without their work. Many thanks.
220+
Thanks to Frank Dietermann for suggestion though to make EBG "posix compliant" (vers. 11.X.X )
220221
Thanks to Jose Joao Dias de Almeida for the makefile tip.
221222
Thanks to Chris "cgat" for his many ideas and suggestions that lead to version's "5.X.X" EasyBashGUI "revolution".
222223
Thanks to Davide Depau for his tests and support, and his effort to make EasyBashGUI Debian policy compliant, and finally for his man page.

0 commit comments

Comments
 (0)