prgbox example added
This commit is contained in:
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
12
gnu/usr.bin/dialog/TESTS/prgbox
Executable 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
|
Loading…
Reference in New Issue
Block a user