xref: /freebsd/contrib/dialog/samples/buildlist (revision 79ac3c12a714bcd3f2354c52d948aed9575c46d6)
1#!/bin/sh
2# $Id: buildlist,v 1.3 2020/11/26 00:03:58 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8$DIALOG --title "BUILDLIST DEMO" --backtitle "A user-built list" \
9	--separator "|" \
10	--buildlist "hello, this is a --buildlist..." 0 0 0 \
11		"1" "Item number 1" "on" \
12		"2" "Item number 2" "off" \
13		"3" "Item number 3" "on" \
14		"4" "Item number 4" "on" \
15		"5" "Item number 5" "off" \
16		"6" "Item number 6" "on" 2> $tempfile
17
18returncode=$?
19
20. ./report-tempfile
21