diff options
Diffstat (limited to 'gnu/usr.bin/dialog')
-rwxr-xr-x | gnu/usr.bin/dialog/TESTS/prgbox | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/usr.bin/dialog/TESTS/prgbox b/gnu/usr.bin/dialog/TESTS/prgbox new file mode 100755 index 0000000..708df5d --- /dev/null +++ b/gnu/usr.bin/dialog/TESTS/prgbox @@ -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 |