1# BSDDialog 0.1 2 3 4This project provides **bsddialog** and **libbsddialog**, an utility and a 5library to build scripts and tools with TUI dialogs and widgets. 6 7 8## Intro 9 10Briefly: 11<https://www.freebsd.org/status/report-2021-04-2021-06/#_bsddialog_tui_widgets> 12 13Utility: 14<https://alfonsosiciliano.gitlab.io/posts/2021-12-07-bsddialog.html> 15 16Library: 17<https://alfonsosiciliano.gitlab.io/posts/2022-01-16-libbsddialog.html> 18 19Screenshots: 20<https://www.flickr.com/photos/alfonsosiciliano/albums/72157720215006074> 21 22 23## Getting Started 24 25FreeBSD: 26 27``` 28% git clone https://gitlab.com/alfix/bsddialog.git 29% cd bsddialog 30% make 31% ./bsddialog --msgbox "Hello World!" 8 20 32``` 33 34Output: 35 36![screenshot](screenshot.png) 37 38 39## Utility 40 41**Dialogs:** 42 43--checklist, --datebox, --form, --gauge, --inputbox, --menu, --mixedform, 44--mixedgauge, --msgbox, --passwordbox, --passwordform, --pause, --radiolist, 45--rangebox, --textbox, --timebox, --treeview, --yesno. 46 47**Manual** 48 49 - [bsddialog(1)](https://alfonsosiciliano.gitlab.io/posts/2022-01-26-manual-bsddialog.html) 50 51 52**Examples**: 53 54``` 55% ./bsddialog --backtitle "TITLE" --title msgbox --msgbox "Hello World!" 5 30 56% ./bsddialog --theme blackwhite --title msgbox --msgbox "Hello World!" 5 30 57% ./bsddialog --begin-y 2 --default-no --title yesno --yesno "Hello World!" 5 30 58% ./bsddialog --ascii-lines --pause "Hello World!" 8 50 10 59% ./bsddialog --checklist "Space to select" 0 0 0 Name1 Desc1 off Name2 Desc2 on 60% ./bsddialog --title yesno --hline "bsddialog" --yesno "Hello World!" 5 25 61% ./bsddialog --extra-button --help-button --yesno "Hello World!" 0 0 62``` 63 64and [Examples](https://gitlab.com/alfix/bsddialog/-/tree/main/examples_utility) 65in the _Public Domain_ to build new projects: 66``` 67% sh ./examples_utility/checklist.sh 68% sh ./examples_utility/form.sh 69% sh ./examples_utility/gauge.sh 70% sh ./examples_utility/infobox.sh 71% sh ./examples_utility/inputbox.sh 72% sh ./examples_utility/menu.sh 73% sh ./examples_utility/mixedform.sh 74% sh ./examples_utility/mixedgauge.sh 75% sh ./examples_utility/msgbox.sh 76% sh ./examples_utility/passwordbox.sh 77% sh ./examples_utility/passwordform.sh 78% sh ./examples_utility/radiolist.sh 79% sh ./examples_utility/treeview.sh 80% sh ./examples_utility/yesno.sh 81``` 82 83## Library 84 85**API** 86 87 - [bsddialog.h](https://gitlab.com/alfix/bsddialog/-/blob/main/lib/bsddialog.h) 88 - [bsddialog\_theme.h](https://gitlab.com/alfix/bsddialog/-/blob/main/lib/bsddialog_theme.h) 89 90 91**Manual** 92 93 - [bsddialog(3)](https://alfonsosiciliano.gitlab.io/posts/2022-01-15-manual-libbsddialog.html) 94 95 96**Examples**: 97 98[Examples](https://gitlab.com/alfix/bsddialog/-/tree/main/examples_library) 99in the _Public Domain_ to build new projects: 100``` 101% cd examples_library 102% sh compile 103% ./datebox 104% ./form 105% ./infobox 106% ./menu 107% ./mixedlist 108% ./msgbox 109% ./pause 110% ./radiolist 111% ./rangebox 112% ./theme 113% ./timebox 114% ./yesno 115``` 116 117