freebsd-nq/contrib/bsddialog
Alfonso Siciliano 263660c061 bsddialog: import version 0.1
Import bsddialog 0.1 Utility and Library, fully refatorized, API stable,
manuals completed, easier to maintain and improve.

Update deps for new API:
add mixedgauge consts, delete __DECONST and add bsddialog_geterror()
info to avoid silent errors

* tzsetup
* kbdmap
* distextract

Differential Revision:	https://reviews.freebsd.org/D34066
2022-01-28 09:56:21 +01:00
..
examples_library bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
examples_utility bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
lib bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
.gitignore bsddialog: import version 0.0.2 2021-12-21 16:13:00 +01:00
bsddialog.1 bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
bsddialog.c bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
GNUMakefile bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
LICENSE bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
Makefile bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
README.md bsddialog: import version 0.1 2022-01-28 09:56:21 +01:00
screenshot.png

BSDDialog 0.1

This project provides bsddialog and libbsddialog, an utility and a library to build scripts and tools with TUI dialogs and widgets.

Intro

Briefly: https://www.freebsd.org/status/report-2021-04-2021-06/#_bsddialog_tui_widgets

Utility: https://alfonsosiciliano.gitlab.io/posts/2021-12-07-bsddialog.html

Library: https://alfonsosiciliano.gitlab.io/posts/2022-01-16-libbsddialog.html

Screenshots: https://www.flickr.com/photos/alfonsosiciliano/albums/72157720215006074

Getting Started

FreeBSD:

% git clone https://gitlab.com/alfix/bsddialog.git
% cd bsddialog
% make
% ./bsddialog --msgbox "Hello World!" 8 20

Output:

screenshot

Utility

Dialogs:

--checklist, --datebox, --form, --gauge, --inputbox, --menu, --mixedform, --mixedgauge, --msgbox, --passwordbox, --passwordform, --pause, --radiolist, --rangebox, --textbox, --timebox, --treeview, --yesno.

Manual

Examples:

% ./bsddialog --backtitle "TITLE" --title msgbox --msgbox "Hello World!" 5 30
% ./bsddialog --theme blackwhite --title msgbox --msgbox "Hello World!" 5 30
% ./bsddialog --begin-y 2 --default-no --title yesno --yesno "Hello World!" 5 30
% ./bsddialog --ascii-lines --pause "Hello World!" 8 50 10
% ./bsddialog --checklist "Space to select" 0 0 0 Name1 Desc1 off Name2 Desc2 on
% ./bsddialog --title yesno --hline "bsddialog" --yesno "Hello World!" 5 25
% ./bsddialog --extra-button --help-button --yesno "Hello World!" 0 0

and Examples in the Public Domain to build new projects:

% sh ./examples_utility/checklist.sh
% sh ./examples_utility/form.sh
% sh ./examples_utility/gauge.sh
% sh ./examples_utility/infobox.sh
% sh ./examples_utility/inputbox.sh
% sh ./examples_utility/menu.sh
% sh ./examples_utility/mixedform.sh
% sh ./examples_utility/mixedgauge.sh
% sh ./examples_utility/msgbox.sh
% sh ./examples_utility/passwordbox.sh
% sh ./examples_utility/passwordform.sh
% sh ./examples_utility/radiolist.sh
% sh ./examples_utility/treeview.sh
% sh ./examples_utility/yesno.sh

Library

API

Manual

Examples:

Examples in the Public Domain to build new projects:

% cd examples_library
% sh compile
% ./datebox
% ./form
% ./infobox
% ./menu
% ./mixedlist
% ./msgbox
% ./pause
% ./radiolist
% ./rangebox
% ./theme
% ./timebox
% ./yesno