Skip to content

Commit a716a78

Browse files
committed
New mode added: "gum" ...
1 parent 5a28ad9 commit a716a78

7 files changed

Lines changed: 1166 additions & 130 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ environment you are running the script in, as **EasyBashGUI** will handle this
2323
transparently, based on the availability of the backends (frontends).
2424

2525
* Console mode:
26+
* gum
2627
* dialog
2728
* Graphical mode:
2829
* yad
@@ -73,7 +74,7 @@ There are for some distros: [![](https://img.shields.io/badge/Debian-A81D33?styl
7374

7475
## Credits.
7576

76-
* Thanks to Bash, Yad, Gtkdialog, Xdialog, Kdialog, Zenity, Cdialog, and Whiptail authors, this library was nothing without their work. Many thanks.
77+
* Thanks to Bash, Yad, Gtkdialog, Xdialog, Kdialog, Zenity, Gum, Cdialog, and Whiptail authors, this library was nothing without their work. Many thanks.
7778
* Thanks to PICCORO McKAY Lenz for his efforts and *excellent* work on README (and bug hunting too).
7879
* Thanks to zen0bit for first try and README impulse revival.
7980
* Thanks to Frank Dietermann for suggestion though to make EBG "posix compliant" (since vers. 11.X.X )

docs/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ environment you are running the script in, as **EasyBashGUI** will handle this
146146
transparently, based on the availability of the widget backends (frontends).
147147

148148
* Console mode:
149+
* gum
149150
* dialog
150151
* whiptail (not selectable, just fall back)
151152
* Graphical mode:
@@ -486,8 +487,8 @@ This is the reference list documentation for programming
486487
- [question](#question)
487488
- [text](#text)
488489
- [wait_seconds (progress bar)](#wait_seconds-progress-bar)
489-
- [progress (progresive way)](#progress-progresive-way)
490-
- [progress (regresive way)](#progress-regresive-way)
490+
- [progress (percent way)](#progress-percent-way)
491+
- [progress (step way)](#progress-step-way)
491492
- [wait_for](#wait_for)
492493
- [terminate_wait_for](#terminate_wait_for)
493494
- [fselect](#fselect)
@@ -610,7 +611,7 @@ progress bar with a duration of the number os seconds you parse it:
610611
wait_seconds <integer>
611612
```
612613

613-
#### progress (progresive way)
614+
#### progress (percent way)
614615

615616
This is an utility function, similar to `wait_seconds`, it will show a box with
616617
a bar that will fill at the number percent position, the number to select the
@@ -632,7 +633,7 @@ percent position is read from STDIN, the number can be piped or parsed from:
632633
* To create a progress sequence you must have several statements with different
633634
numbers that indicate the progress
634635

635-
#### progress (regresive way)
636+
#### progress (step way)
636637

637638
Similar to `progress` but using element number indicator, it will show a box with
638639
a bar that will fill at the number elements to left, the number to select the
@@ -860,7 +861,7 @@ Those variables are filled when the action its completed:
860861
* `${file_tmp}` random file name where is content has the values selected in order
861862

862863
``` bash
863-
menu "< <+|->item1>" "[<+|->item2]" .. "[<+|->itemN-1]" "[<+|->itemN]"
864+
list "< <+|->item1>" "[<+|->item2]" .. "[<+|->itemN-1]" "[<+|->itemN]"
864865
```
865866

866867
#### adjust
@@ -889,7 +890,6 @@ Those variables are filled when the action its completed:
889890
ajust "[text]" "[min]" "[init]" "[max]"
890891
```
891892

892-
There are some small issues with `digalog` and `kdialog`, values can go outside of limits
893893

894894
#### notify_message
895895

@@ -912,7 +912,7 @@ notify_message [-i "<icon>"] "[text]"
912912

913913
This function is used to change the desktop systray notification from a state (say "good" )
914914
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:
915+
moreover, you can optionally change on-the-fly even the systray icon and its tooltip:
916916

917917
* ARGUMENTS:
918918
* icon : optional , picture to show in the box aside
@@ -950,7 +950,7 @@ notify [-c "<command>"] [-i "<icongood|iconbad>"] [-t "<textgood|textbad>"] "[go
950950

951951
EasyBashGUI doesn't work with original "dialog" ( old one ) that is very limited; if you have first version "dialog" in your box, install "cdialog" and alias or link "dialog" to cdialog.
952952

953-
Since 5.0.0 version you can use EasyBashGUI even if NO WIDGET backend is installed (that is: no gtkdialog, no kdialog, no zenity, no Xdialog, no (c)dialog... doh!!!!! ). To use "super bare" EBG, simply remove the ".lib" library from your path, or set "supermode" var to "none" before easybashgui sourcing (e.g.: >export supermode="none" && source easybashgui && message "Hello world..." )
953+
Since 5.0.0 version you can use EasyBashGUI even if NO WIDGET backend is installed (that is: no yad, no gtkdialog, no kdialog, no zenity, no Xdialog, no gum, no (c)dialog... doh!!!!! ). To use "super bare" EBG, simply remove the ".lib" library from your path, or set "supermode" var to "none" before easybashgui sourcing (e.g.: >export supermode="none" && source easybashgui && message "Hello world..." )
954954

955955
EasyBashGUI sets gtkdialog output statements as variables through "eval". This way, in theory, could be possibly dangerous; nevertheless, so far, I don't know about any alternative way...
956956

docs/install.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Simplified way to code bash made GUI frontend dialogs! - Installation document!
99

1010
* Dialog backend that will act as frontend GUI:
1111
* Console:
12+
* `gum` 0.13.0+ https://github.com/charmbracelet/gum (selectable)
1213
* `cdialog` / `dialog` 1.2-20120230+ https://invisible-island.net/dialog (required)
13-
* `whiptail` 0.52+ https://pagure.io/newt used as falback, not selectable!
14+
* `whiptail` 0.52+ https://pagure.io/newt (used as falback, not selectable!)
1415
* Graphical:
1516
* `yad` 0.20+ https://github.com/v1cont/yad (GTK2 branch available)
1617
* `gtkdialog` 0.8.3+ https://code.google.com/p/gtkdialog (limited support)

0 commit comments

Comments
 (0)