@@ -147,7 +147,6 @@ transparently, based on the availability of the widget backends (frontends).
147147
148148* Console mode:
149149 * dialog
150- * cdialog
151150 * whiptail (not selectable, just fall back)
152151* Graphical mode:
153152 * yad
@@ -163,12 +162,12 @@ If there is no dialog/cdialog support installed. Check next section about `super
163162The backends for frontends (the widgets to use to display boxes) are selectable
164163by the ` supermode ` environment variable.
165164
166- The ` supermode ` environment variable its only used to force or manually select
167- an specific widget , by example using ` kdialog ` under GTK desktop, or by example
168- using ` zenity ` under KDE environment. Also when EBG fails to detect widget usage!
165+ The ` supermode ` environment variable is only used to force or manually select
166+ a specific widget , by example using ` kdialog ` under GTK desktop, or by example
167+ using ` zenity ` under KDE environment.
169168
170169There is no ` whiptail ` mode because is used only as fallback! when dialog/cdialog
171- is missing, simply just use ` supermode=dialog ` for!
170+ is missing, if whiptail is present, just use ` supermode=dialog ` for!
172171
173172#### System wide usage vs module user usage
174173
@@ -290,7 +289,7 @@ box with confirmation.
290289``` bash
291290source easybashgui
292291
293- question " Do you like Contry music ?"
292+ question " Do you like Country music ?"
294293answer=" ${?} "
295294if [ ${answer} -eq 0 ]
296295 then
@@ -385,7 +384,8 @@ You can piped the progress count to a text of a box:
385384``` bash
386385source easybashgui
387386
388- for i in 10 20 30 40 50 60 70 80 90 100 do
387+ for i in 10 20 30 40 50 60 70 80 90 100
388+ do
389389 echo " ${i} "
390390 sleep 1
391391done | progress " This is a test progress..."
@@ -425,7 +425,7 @@ choice_list="$(0< "${dir_tmp}/${file_tmp}" )"
425425IFS=$' \n ' ; choice_array=( $( 0< " ${dir_tmp} /${file_tmp} " ) ) ; IFS=$' \t\n '
426426```
427427
428- #### A more complex example
428+ #### A more complex example: progress bar by steps
429429
430430``` bash
431431source easybashgui
@@ -626,9 +626,7 @@ percent position is read from STDIN, the number can be piped or parsed from:
626626 * exit code: 0 unless its canceled externally, will be anything
627627
628628``` bash
629- progress " [text]" <<< 20
630- progress " [text]" <<< 60
631- progress " [text]" <<< 90
629+ (echo " 10" ; sleep 1 ; echo " 50" ; sleep 1 ; echo " 100" ; sleep 1 ) | progress " Percent..."
632630```
633631
634632* To create a progress sequence you must have several statements with different
@@ -652,12 +650,7 @@ from the STDIN to the function to indicate to fil the progress bar in the box:
652650 * exit code: 0 unless its canceled externally, will be anything
653651
654652``` bash
655- progress " <text>" n <<< PROGRESS
656- progress " <text>" n-1 <<< PROGRESS
657- ...
658- progress " <text>" 3 <<< PROGRESS
659- progress " <text>" 2 <<< PROGRESS
660- progress " <text>" 1 <<< PROGRESS
653+ (echo " PROGRESS" ; sleep 1 ; echo " PROGRESS" ; sleep 1 ) | progress " Steps..." 2
661654```
662655
663656#### wait_for
@@ -917,7 +910,9 @@ notify_message [-i "<icon>"] "[text]"
917910
918911#### notify_change
919912
920- Like "message" but now as desktop systray notification to display:
913+ This function is used to change the desktop systray notification from a state (say "good" )
914+ to the other state (say: "bad" ) set previously by notify() function (see below );
915+ moreover, you can optionally change on-the-fly even the systray icon and tooltip:
921916
922917* ARGUMENTS:
923918 * icon : optional , picture to show in the box aside
0 commit comments