1*4c8945a0SNathan Whitehorn#! /bin/sh 2*4c8945a0SNathan Whitehorn# $Id: radiolist1,v 1.1 2010/01/17 23:05:14 tom Exp $ 3*4c8945a0SNathan Whitehorn 4*4c8945a0SNathan Whitehorn. ./setup-vars 5*4c8945a0SNathan Whitehorn 6*4c8945a0SNathan Whitehorn. ./setup-tempfile 7*4c8945a0SNathan Whitehorn 8*4c8945a0SNathan Whitehorn$DIALOG --backtitle "No Such Organization" \ 9*4c8945a0SNathan Whitehorn --title "RADIOLIST BOX" --clear "$@" \ 10*4c8945a0SNathan Whitehorn --radiolist "Hi, this is a radiolist box. You can use this to \n\ 11*4c8945a0SNathan Whitehornpresent a list of choices which can be turned on or \n\ 12*4c8945a0SNathan Whitehornoff. If there are more items than can fit on the \n\ 13*4c8945a0SNathan Whitehornscreen, the list will be scrolled. You can use the \n\ 14*4c8945a0SNathan WhitehornUP/DOWN arrow keys, the first letter of the choice as a \n\ 15*4c8945a0SNathan Whitehornhot key, or the number keys 1-9 to choose an option. \n\ 16*4c8945a0SNathan WhitehornPress SPACE to toggle an option on/off. \n\n\ 17*4c8945a0SNathan Whitehorn Which of the following are fruits?" 20 61 5 \ 18*4c8945a0SNathan Whitehorn "Apple" "It's an apple." off \ 19*4c8945a0SNathan Whitehorn "Dog" "No, that's not my dog." ON \ 20*4c8945a0SNathan Whitehorn "Dog2" "No2, that's not my dog." off \ 21*4c8945a0SNathan Whitehorn "Dog3" "No3, that's not my dog." off \ 22*4c8945a0SNathan Whitehorn "Dog4" "No4, that's not my dog." off \ 23*4c8945a0SNathan Whitehorn "Dog5" "No5, that's not my dog." off \ 24*4c8945a0SNathan Whitehorn "Dog6" "No6, that's not my dog." off \ 25*4c8945a0SNathan Whitehorn "Orange" "Yeah, that's juicy." off \ 26*4c8945a0SNathan Whitehorn "Chicken" "Normally not a pet." off \ 27*4c8945a0SNathan Whitehorn "Cat" "No, never put a dog and a cat together!" off \ 28*4c8945a0SNathan Whitehorn "Fish" "Cats like fish." off \ 29*4c8945a0SNathan Whitehorn "Lemon" "You know how it tastes." off 2> $tempfile 30*4c8945a0SNathan Whitehorn 31*4c8945a0SNathan Whitehornretval=$? 32*4c8945a0SNathan Whitehorn 33*4c8945a0SNathan Whitehorn. ./report-tempfile 34