1217309Snwhitehorn#!/bin/sh
2217309Snwhitehorn# $Id: menubox-8bit,v 1.6 2010/01/13 10:20:03 tom Exp $
3217309Snwhitehorn
4217309Snwhitehorn. ./setup-vars
5217309Snwhitehorn
6217309Snwhitehorn. ./setup-tempfile
7217309Snwhitehorn
8217309Snwhitehorn. ./testdata-8bit
9217309Snwhitehorn
10217309Snwhitehorn$DIALOG --clear --title "MENU BOX" "$@" \
11217309Snwhitehorn        --menu "Hi, this is a menu box. You can use this to \n\
12217309Snwhitehornpresent a list of choices for the user to \n\
13217309Snwhitehornchoose. If there are more items than can fit \n\
14217309Snwhitehornon the screen, the menu will be scrolled. \n\
15217309SnwhitehornYou can use the UP/DOWN arrow keys, the first \n\
16217309Snwhitehornletter of the choice as a hot key, or the \n\
17217309Snwhitehornnumber keys 1-9 to choose an option.\n\
18217309SnwhitehornTry it now!\n\n\
19217309Snwhitehorn          Choose the OS you like:" 20 51 4 \
20217309Snwhitehorn        "`./rotated-data 0 $SAMPLE`"  "The Great Unix Clone for 386/486" \
21217309Snwhitehorn        "`./rotated-data 1 $SAMPLE`" "Another free Unix Clone for 386/486" \
22217309Snwhitehorn        "`./rotated-data 2 $SAMPLE`" "IBM OS/2" \
23217309Snwhitehorn        "`./rotated-data 3 $SAMPLE`" "Microsoft Windows NT" \
24217309Snwhitehorn        "`./rotated-data 4 $SAMPLE`" "IBM PC DOS" \
25217309Snwhitehorn        "`./rotated-data 5 $SAMPLE`" "Microsoft DOS" 2> $tempfile
26217309Snwhitehorn
27217309Snwhitehornretval=$?
28217309Snwhitehorn
29217309Snwhitehorn. ./report-tempfile
30