xref: /freebsd/contrib/bsddialog/examples_utility/mixedgauge.sh (revision 13ec1e3155c7e9bf037b12af186351b7fa9b9450)
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
11perc=0
12while [ $perc -le 100 ]
13do
14	./bsddialog --sleep 1 --title " mixedgauge "    \
15		--mixedgauge "Example..." 20 45  $perc \
16		"(Hidden)"   " -9"  \
17		"Label  1"   " -1"  \
18		"Label  2"   " -2"  \
19		"Label  3"   " -3"  \
20		"Label  4"   " -4"  \
21		"Label  5"   " -5"  \
22		"Label  6"   " -6"  \
23		"Label  7"   " -7"  \
24		"Label  8"   " -8"  \
25		"Label  9"   " -10" \
26		"Label 10"   " -11" \
27		"Label  X"   $perc
28
29	perc=`expr $perc + 20`
30done
31