1217309Snwhitehorn#! /bin/sh 2217309Snwhitehorn# $Id: radiolist2,v 1.8 2010/01/13 10:20:03 tom Exp $ 3217309Snwhitehorn 4217309Snwhitehorn. ./setup-vars 5217309Snwhitehorn 6217309Snwhitehorn. ./setup-tempfile 7217309Snwhitehorn 8217309Snwhitehorn$DIALOG --ok-label Okay \ 9217309Snwhitehorn --cancel-label 'Give Up' \ 10217309Snwhitehorn --backtitle "No Such Organization" \ 11217309Snwhitehorn --title "RADIOLIST BOX" --clear "$@" \ 12217309Snwhitehorn --radiolist "Hi, this is a radiolist box. You can use this to \n\ 13217309Snwhitehornpresent a list of choices which can be turned on or \n\ 14217309Snwhitehornoff. If there are more items than can fit on the \n\ 15217309Snwhitehornscreen, the list will be scrolled. You can use the \n\ 16217309SnwhitehornUP/DOWN arrow keys, the first letter of the choice as a \n\ 17217309Snwhitehornhot key, or the number keys 1-9 to choose an option. \n\ 18217309SnwhitehornPress SPACE to toggle an option on/off. \n\n\ 19217309Snwhitehorn Which of the following are fruits?" 20 61 5 \ 20217309Snwhitehorn "Apple" "It's an apple." off \ 21217309Snwhitehorn "Dog" "No, that's not my dog." ON \ 22217309Snwhitehorn "Orange" "Yeah, that's juicy." off \ 23217309Snwhitehorn "Chicken" "Normally not a pet." off \ 24217309Snwhitehorn "Cat" "No, never put a dog and a cat together!" off \ 25217309Snwhitehorn "Fish" "Cats like fish." off \ 26217309Snwhitehorn "Lemon" "You know how it tastes." off 2> $tempfile 27217309Snwhitehorn 28217309Snwhitehornretval=$? 29217309Snwhitehorn 30217309Snwhitehorn. ./report-tempfile 31