From e56a937c3e111672afff33346941fb618792308b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 4 Oct 2023 17:43:22 +0200 Subject: [PATCH] bsddialog: Import version 1.0 --- .gitignore | 2 + CHANGELOG | 194 +++- GNUMakefile | 28 - LICENSE | 2 +- Makefile | 62 +- README.md | 35 +- bsddialog.c | 1687 ---------------------------- examples_library/calendar.c | 22 +- examples_library/checklist.c | 11 +- examples_library/compile | 2 +- examples_library/datebox.c | 21 +- examples_library/form.c | 11 +- examples_library/gauge.c | 57 + examples_library/infobox.c | 6 +- examples_library/menu.c | 11 +- examples_library/mixedgauge.c | 79 ++ examples_library/mixedlist.c | 21 +- examples_library/msgbox.c | 9 +- examples_library/pause.c | 23 +- examples_library/radiolist.c | 14 +- examples_library/rangebox.c | 7 +- examples_library/theme.c | 46 +- examples_library/timebox.c | 18 +- examples_library/yesno.c | 11 +- examples_utility/checklist.sh | 16 +- examples_utility/datebox.sh | 34 + examples_utility/form.sh | 4 +- examples_utility/infobox.sh | 2 +- examples_utility/inputbox.sh | 5 +- examples_utility/menu.sh | 13 +- examples_utility/mixedform.sh | 4 +- examples_utility/mixedgauge.sh | 10 +- examples_utility/passwordbox.sh | 4 +- examples_utility/passwordform.sh | 4 +- examples_utility/radiolist.sh | 18 +- examples_utility/rangebox.sh | 33 + lib/{GNUMakefile => GNUmakefile} | 15 +- lib/Makefile | 49 +- lib/barbox.c | 695 +++++------- lib/bsddialog.3 | 632 ++++++----- lib/bsddialog.h | 44 +- lib/bsddialog_progressview.h | 8 +- lib/bsddialog_theme.h | 28 +- lib/calendarbox.c | 520 --------- lib/datebox.c | 715 ++++++++++++ lib/formbox.c | 958 ++++++++-------- lib/infobox.c | 96 -- lib/lib_util.c | 1203 +++++++++++--------- lib/lib_util.h | 179 +-- lib/libbsddialog.c | 38 +- lib/menubox.c | 857 +++++++------- lib/messagebox.c | 252 ++--- lib/textbox.c | 270 +++-- lib/theme.c | 246 ++-- lib/timebox.c | 479 ++------ util_theme.c | 353 ------ util_theme.h | 36 - utility/GNUmakefile | 33 + utility/Makefile | 33 + bsddialog.1 => utility/bsddialog.1 | 347 ++++-- utility/bsddialog.c | 338 ++++++ utility/util.h | 125 +++ utility/util_builders.c | 768 +++++++++++++ utility/util_cli.c | 841 ++++++++++++++ utility/util_theme.c | 451 ++++++++ 65 files changed, 6919 insertions(+), 6216 deletions(-) delete mode 100644 GNUMakefile delete mode 100644 bsddialog.c create mode 100644 examples_library/gauge.c create mode 100644 examples_library/mixedgauge.c create mode 100755 examples_utility/datebox.sh create mode 100644 examples_utility/rangebox.sh rename lib/{GNUMakefile => GNUmakefile} (65%) delete mode 100644 lib/calendarbox.c create mode 100644 lib/datebox.c delete mode 100644 lib/infobox.c delete mode 100644 util_theme.c delete mode 100644 util_theme.h create mode 100644 utility/GNUmakefile create mode 100644 utility/Makefile rename bsddialog.1 => utility/bsddialog.1 (75%) create mode 100644 utility/bsddialog.c create mode 100644 utility/util.h create mode 100644 utility/util_builders.c create mode 100644 utility/util_cli.c create mode 100644 utility/util_theme.c diff --git a/.gitignore b/.gitignore index 8b8ec9d4ae0..c8fc68ed8a0 100644 --- a/.gitignore +++ b/.gitignore @@ -12,8 +12,10 @@ examples_library/calendar examples_library/checklist examples_library/datebox examples_library/form +examples_library/gauge examples_library/infobox examples_library/menu +examples_library/mixedgauge examples_library/mixedlist examples_library/msgbox examples_library/pause diff --git a/CHANGELOG b/CHANGELOG index 883fe1016d0..e6295768d90 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,173 @@ +2023-08-01 Version 1.0 + + Utility: + * add: comments to --save-theme output file. + * add: blink, halfbright, highlight to --save-theme and --load-theme. + * add: theme.menu.[f_]prefixcolor to --save-theme and --load-theme. + * add: --datebox-format to set --datebox UI. + * add: --help-print-items (--help-status becomes alias). + * add: --text-escape (--colors becomes alias). + * add: new escapes \Zd, \Zk, \Zs, \ZD, \ZK, \ZS, for --text-escape. + * add: env NO_COLOR, to set blackwhite theme. + * add: $HOME/.bsddialog.conf startup theme file. + * add: env BSDDIALOG_THEMEFILE startup theme file. + * add: --left1-button