diff options
author | ache <ache@FreeBSD.org> | 1994-10-28 03:22:29 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-28 03:22:29 +0000 |
commit | 1a25ab537bba887df7e43c39a088527b8195fdf8 (patch) | |
tree | 483b9631c348e3d6c2c1cd4d26844d96c38dbb3a /gnu/usr.bin/dialog | |
parent | ef4e01e47291ccde39ac2a102b512b740c5625d8 (diff) | |
download | FreeBSD-src-1a25ab537bba887df7e43c39a088527b8195fdf8.zip FreeBSD-src-1a25ab537bba887df7e43c39a088527b8195fdf8.tar.gz |
prgbox example added
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 |