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