1#! /bin/sh 2# $Id: checklist7,v 1.12 2020/11/26 00:03:58 tom Exp $ 3# "checklist6" with --separate-output 4 5. ./setup-vars 6 7. ./setup-tempfile 8 9$DIALOG --help-button \ 10 --item-help \ 11 --colors \ 12 --backtitle "\Z1No Such\Zn Organization" \ 13 --separate-output \ 14 --title "CHECKLIST BOX" "$@" \ 15 --checklist "Hi, this is a checklist box. You can use this to \n\ 16present a list of choices which can be turned on or \n\ 17off. If there are more items than can fit on the \n\ 18screen, the list will be scrolled. You can use the \n\ 19\Z4UP/DOWN\Zn arrow keys, the first letter of the choice as a \n\ 20hot key, or the number keys 1-9 to choose an option. \n\ 21Press \Zb\ZrSPACE\Zn to toggle an option on/off. \n\n\ 22 Which of the following are fruits?" 20 61 5 \ 23 "Apple" "It's an \Z1apple\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "fruit" \ 24 "Dog" "No, that's not my dog. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ON "not a fruit" \ 25 "Orange" "Yeah, that's juicy. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "fruit" \ 26 "Chicken" "Normally not a pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "not a fruit" \ 27 "" "No such pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "not anything" \ 28 "Cat" "No, never put a dog and a cat together! xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" oN "not a fruit" \ 29 "Fish" "Cats like \Z4fish\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" On "not a fruit" \ 30 "Lemon" "You know how it \Zr\Zb\Z3tastes\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" on "the only one you wouldn't eat" 2> $tempfile 31 32returncode=$? 33 34. ./report-tempfile 35