mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
prgbox example added
This commit is contained in:
parent
78e71dffd1
commit
b140921eef
1 changed files with 12 additions and 0 deletions
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 a new issue