diff options
| author | Braulio Rivas <brauliorivas@FreeBSD.org> | 2025-11-03 20:14:09 +0000 |
|---|---|---|
| committer | Alfonso S. Siciliano <asiciliano@FreeBSD.org> | 2025-11-03 20:14:09 +0000 |
| commit | 5a70558d32b9680c10ab579c7491652e0838cee4 (patch) | |
| tree | f7d70fcdbc604287f039ae1df30f1f7c419f3dfc /utility/util_cli.c | |
| parent | 653f765f05b8c7e3908ae92e9bf61522a50cefc9 (diff) | |
contrib/bsddialog: import 1.1vendor/bsddialog/1.1vendor/bsddialog
Add: slider dialog.
Imported to enable testing and to complete the geomman(8) utility.
Developed as part of the "Full Disk Administration Tool for FreeBSD"
project, Braulio Rivas (brauliorivas@), Google Summer of Code 2025.
Sponsored by: Google LLC (GSoC 2025)
Diffstat (limited to 'utility/util_cli.c')
| -rw-r--r-- | utility/util_cli.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/utility/util_cli.c b/utility/util_cli.c index 01b6fc31f065..7e76ec84654f 100644 --- a/utility/util_cli.c +++ b/utility/util_cli.c @@ -143,7 +143,8 @@ enum OPTS { TEXTBOX, TIMEBOX, TREEVIEW, - YESNO + YESNO, + SLIDER, }; /* options descriptor */ @@ -264,6 +265,7 @@ static struct option longopts[] = { {"pause", no_argument, NULL, PAUSE}, {"radiolist", no_argument, NULL, RADIOLIST}, {"rangebox", no_argument, NULL, RANGEBOX}, + {"slider", no_argument, NULL, SLIDER}, {"textbox", no_argument, NULL, TEXTBOX}, {"timebox", no_argument, NULL, TIMEBOX}, {"treeview", no_argument, NULL, TREEVIEW}, @@ -801,6 +803,13 @@ parseargs(int argc, char **argv, struct bsddialog_conf *conf, opt->name = "--rangebox"; opt->dialogbuilder = rangebox_builder; break; + case SLIDER: + if (opt->dialogbuilder != NULL) + exit_error(true, "%s and --slider without " + "--and-dialog", opt->name); + opt->name = "--slider"; + opt->dialogbuilder = slider_builder; + break; case TEXTBOX: if (opt->dialogbuilder != NULL) exit_error(true, "%s and --textbox without " |
