xref: /freebsd/contrib/dialog/samples/buildlist (revision 0e33efe4e4b5d24e2d416938af8bc6e6e4160ec8)
1#!/bin/sh
2# $Id: buildlist,v 1.2 2012/12/04 11:45:21 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
18retval=$?
19
20. ./report-tempfile
21