checklist11 revision 217309
1217309Snwhitehorn#! /bin/sh 2217309Snwhitehorn# $Id: checklist11,v 1.1 2010/01/17 23:04:01 tom Exp $ 3217309Snwhitehorn 4217309Snwhitehorn. ./setup-vars 5217309Snwhitehorn 6217309Snwhitehorn. ./setup-tempfile 7217309Snwhitehorn 8217309Snwhitehorn$DIALOG --backtitle "No Such Organization" \ 9217309Snwhitehorn --title "CHECKLIST BOX" "$@" \ 10217309Snwhitehorn --checklist "Hi, this is a checklist box. You can use this to \n\ 11217309Snwhitehornpresent a list of choices which can be turned on or \n\ 12217309Snwhitehornoff. If there are more items than can fit on the \n\ 13217309Snwhitehornscreen, the list will be scrolled. You can use the \n\ 14217309SnwhitehornUP/DOWN arrow keys, the first letter of the choice as a \n\ 15217309Snwhitehornhot key, or the number keys 1-9 to choose an option. \n\ 16217309SnwhitehornPress SPACE to toggle an option on/off. \n\n\ 17217309Snwhitehorn Which of the following are fruits?" 20 61 5 \ 18217309Snwhitehorn "" "It's an apple." off \ 19217309Snwhitehorn "Dog" "No1, that's not my dog." ON \ 20217309Snwhitehorn "Dog2" "No2, that's not my dog." OFF \ 21217309Snwhitehorn "Dog3" "No3, that's not my dog." OFF \ 22217309Snwhitehorn "Dog4" "No4, that's not my dog." OFF \ 23217309Snwhitehorn "Dog5" "No5, that's not my dog." OFF \ 24217309Snwhitehorn "Dog6" "No6, that's not my dog." OFF \ 25217309Snwhitehorn "Orange" "Yeah, that's juicy." off \ 26217309Snwhitehorn "Chicken" "" off \ 27217309Snwhitehorn "Cat" "No, never put a dog and a cat together!" oN \ 28217309Snwhitehorn "Fish" "Cats like fish." On \ 29217309Snwhitehorn "Lemon" "You know how it tastes." on 2> $tempfile 30217309Snwhitehorn 31217309Snwhitehornretval=$? 32217309Snwhitehorn 33217309Snwhitehorn. ./report-tempfile 34