xref: /freebsd/contrib/bsddialog/examples_utility/mixedgauge.sh (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1#!/bin/sh
2#-
3# SPDX-License-Identifier: CC0-1.0
4#
5# Written in 2021 by Alfonso Sabato Siciliano.
6#
7# To the extent possible under law, the author has dedicated all copyright
8# and related and neighboring rights to this software to the public domain
9# worldwide. This software is distributed without any warranty, see:
10#	<http://creativecommons.org/publicdomain/zero/1.0/>.
11
12perc=0
13while [ $perc -le 100 ]
14do
15	./bsddialog --sleep 1 --title " mixedgauge "    \
16		--mixedgauge "Example..." 20 45  $perc \
17		"(Hidden)"   " -9"  \
18		"Label  1"   " -1"  \
19		"Label  2"   " -2"  \
20		"Label  3"   " -3"  \
21		"Label  4"   " -4"  \
22		"Label  5"   " -5"  \
23		"Label  6"   " -6"  \
24		"Label  7"   " -7"  \
25		"Label  8"   " -8"  \
26		"Label  9"   " -10" \
27		"Label 10"   " -11" \
28		"Label  X"   $perc
29
30	perc=`expr $perc + 20`
31done
32