14c8945a0SNathan Whitehorn#! /bin/sh 2*a96ef450SBaptiste Daroussin# $Id: checklist8,v 1.11 2020/11/26 00:03:58 tom Exp $ 34c8945a0SNathan Whitehorn# "checklist7" without --item-help 44c8945a0SNathan Whitehorn 54c8945a0SNathan Whitehorn. ./setup-vars 64c8945a0SNathan Whitehorn 74c8945a0SNathan Whitehorn. ./setup-tempfile 84c8945a0SNathan Whitehorn 94c8945a0SNathan Whitehorn$DIALOG --help-button \ 104c8945a0SNathan Whitehorn --colors \ 114c8945a0SNathan Whitehorn --backtitle "\Z1No Such\Zn Organization" \ 124c8945a0SNathan Whitehorn --separate-output \ 134c8945a0SNathan Whitehorn --title "CHECKLIST BOX" "$@" \ 144c8945a0SNathan Whitehorn --checklist "Hi, this is a checklist box. You can use this to \n\ 154c8945a0SNathan Whitehornpresent a list of choices which can be turned on or \n\ 164c8945a0SNathan Whitehornoff. If there are more items than can fit on the \n\ 174c8945a0SNathan Whitehornscreen, the list will be scrolled. You can use the \n\ 184c8945a0SNathan Whitehorn\Z4UP/DOWN\Zn arrow keys, the first letter of the choice as a \n\ 194c8945a0SNathan Whitehornhot key, or the number keys 1-9 to choose an option. \n\ 204c8945a0SNathan WhitehornPress \Zb\ZrSPACE\Zn to toggle an option on/off. \n\n\ 214c8945a0SNathan Whitehorn Which of the following are fruits?" 20 61 5 \ 224c8945a0SNathan Whitehorn "Apple" "It's an \Z1apple\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off \ 234c8945a0SNathan Whitehorn "Dog" "No, that's not my dog. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ON \ 244c8945a0SNathan Whitehorn "Orange" "Yeah, that's juicy. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off \ 254c8945a0SNathan Whitehorn "Chicken" "Normally not a pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off \ 264c8945a0SNathan Whitehorn "" "No such pet. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" off \ 274c8945a0SNathan Whitehorn "Cat" "No, never put a dog and a cat together! xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" oN \ 284c8945a0SNathan Whitehorn "Fish" "Cats like \Z4fish\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" On \ 294c8945a0SNathan Whitehorn "Lemon" "You know how it \Zr\Zb\Z3tastes\Zn. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" on 2> $tempfile 304c8945a0SNathan Whitehorn 31*a96ef450SBaptiste Daroussinreturncode=$? 324c8945a0SNathan Whitehorn 334c8945a0SNathan Whitehorn. ./report-tempfile 34