xref: /freebsd/contrib/bsddialog/examples_utility/checklist.sh (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1#!/bin/sh
2#-
3# SPDX-License-Identifier: CC0-1.0
4#
5# Written in 2021 by Alfonso Sabato Siciliano.
6# To the extent possible under law, the author has dedicated all copyright
7# and related and neighboring rights to this software to the public domain
8# worldwide. This software is distributed without any warranty, see:
9# <http://creativecommons.org/publicdomain/zero/1.0/>.
10
11./bsddialog --title checklist --checklist "Hello World!" 15 30 5 \
12	"Tag 1"	"DESC 1 xyz" on  \
13	"Tag 2"	"DESC 2 xyz" off \
14	"Tag 3"	"DESC 3 xyz" on  \
15	"Tag 4"	"DESC 4 xyz" off \
16	"Tag 5"	"DESC 5 xyz" on  \
17	2>out.txt ; cat out.txt ; rm out.txt
18