prgbox example added

This commit is contained in:
Andrey A. Chernov 1994-10-28 03:22:29 +00:00
parent 78e71dffd1
commit b140921eef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3952

12
gnu/usr.bin/dialog/TESTS/prgbox Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
DIALOG=${DIALOG=/usr/bin/dialog}
$DIALOG --title "PROGRAM BOX: 'cal'" --clear \
--prgbox "cal" 13 27
case $? in
0)
echo "OK";;
255)
echo "ESC pressed.";;
esac