1217309Snwhitehorn#! /bin/sh 2217309Snwhitehorn# $Id: checklist7,v 1.11 2010/01/13 10:20:03 tom Exp $ 3217309Snwhitehorn# "checklist6" with --separate-output 4217309Snwhitehorn 5217309Snwhitehorn. ./setup-vars 6217309Snwhitehorn 7217309Snwhitehorn. ./setup-tempfile 8217309Snwhitehorn 9217309Snwhitehorn$DIALOG --help-button \ 10217309Snwhitehorn --item-help \ 11217309Snwhitehorn --colors \ 12217309Snwhitehorn --backtitle "\Z1No Such\Zn Organization" \ 13217309Snwhitehorn --separate-output \ 14217309Snwhitehorn --title "CHECKLIST BOX" "$@" \ 15217309Snwhitehorn --checklist "Hi, this is a checklist box. You can use this to \n\ 16217309Snwhitehornpresent a list of choices which can be turned on or \n\ 17217309Snwhitehornoff. If there are more items than can fit on the \n\ 18217309Snwhitehornscreen, the list will be scrolled. You can use the \n\ 19217309Snwhitehorn\Z4UP/DOWN\Zn arrow keys, the first letter of the choice as a \n\ 20217309Snwhitehornhot key, or the number keys 1-9 to choose an option. \n\ 21217309SnwhitehornPress \Zb\ZrSPACE\Zn to toggle an option on/off. \n\n\ 22217309Snwhitehorn Which of the following are fruits?" 20 61 5 \ 23217309Snwhitehorn "Apple" "It's an \Z1apple\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "fruit" \ 24217309Snwhitehorn "Dog" "No, that's not my dog. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ON "not a fruit" \ 25217309Snwhitehorn "Orange" "Yeah, that's juicy. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "fruit" \ 26217309Snwhitehorn "Chicken" "Normally not a pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "not a fruit" \ 27217309Snwhitehorn "" "No such pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off "not anything" \ 28217309Snwhitehorn "Cat" "No, never put a dog and a cat together! xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" oN "not a fruit" \ 29217309Snwhitehorn "Fish" "Cats like \Z4fish\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" On "not a fruit" \ 30217309Snwhitehorn "Lemon" "You know how it \Zr\Zb\Z3tastes\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" on "the only one you wouldn't eat" 2> $tempfile 31217309Snwhitehorn 32217309Snwhitehornretval=$? 33217309Snwhitehorn 34217309Snwhitehorn. ./report-tempfile 35