This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

26 lines
489 B
Bash
Executable File

#!/bin/sh
# $Id: gauge2,v 1.3 2003/10/09 22:15:56 tom Exp $
# The original dialog program assumed the first line after the first "XXX"
# was a percentage value (compare with "gauge" script).
: ${DIALOG=dialog}
(echo "10" ; sleep 2 ;
echo "XXX";
echo "The new"
echo "\\n"
echo "message";
echo "XXX";
echo "20"
sleep 2;
echo "75" ; sleep 1
echo "100") | \
$DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 40 0
if [ "$?" = 255 ] ; then
echo ""
echo "Box closed !"
fi