xref: /freebsd/contrib/bsddialog/examples_utility/menu.sh (revision 7be9a3b45356747f9fcb6d69a722c1c95f8060bf)
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 " menu " --menu "Hello World!" 15 30 5 \
12	"Tag  1"  "DESC  1  xyz" \
13	"Tag  2"  "DESC  2  xyz" \
14	"Tag  3"  "DESC  3  xyz" \
15	"Tag  4"  "DESC  4  xyz" \
16	"Tag  5"  "DESC  5  xyz" \
17	2>out.txt ; cat out.txt ; rm out.txt
18