1217309Snwhitehorn#!/bin/sh
2217309Snwhitehorn# $Id: menubox6,v 1.8 2010/01/13 10:20:03 tom Exp $
3217309Snwhitehorn# example showing the --colors option
4217309Snwhitehorn
5217309Snwhitehorn. ./setup-vars
6217309Snwhitehorn
7217309Snwhitehorn. ./setup-tempfile
8217309Snwhitehorn
9217309Snwhitehorn$DIALOG --clear --item-help --title "MENU BOX" --colors "$@" \
10217309Snwhitehorn        --menu "Hi, this is a \Zumenu\Zn box. You can use this to \n\
11217309Snwhitehornpresent a list of choices for the user to \n\
12217309Snwhitehornchoose. If there are more items than can fit \n\
13217309Snwhitehornon the screen, the menu will be scrolled. \n\
14217309SnwhitehornYou can use the \Z4UP/DOWN\Zn arrow keys, the first \n\
15217309Snwhitehornletter of the choice as a hot key, or the \n\
16217309Snwhitehorn\Z2number\Zn keys 1-9 to choose an option.\n\
17217309SnwhitehornTry it now!\n\n\
18217309Snwhitehorn          Choose the OS you like:" 20 51 4 \
19217309Snwhitehorn        "Linux"  "The Great Unix Clone for \Zu386/486"    "Why use \ZbLinux?" \
20217309Snwhitehorn        "NetBSD" "Another free Unix Clone for \Zu386/486" "Or \ZbNetBSD?" \
21217309Snwhitehorn        "OS/2"   "IBM OS/2"                            "aka \"Warp\"" \
22217309Snwhitehorn        "WIN NT" "Microsoft Windows NT"                "hmm" \
23217309Snwhitehorn        "PCDOS"  "IBM PC \ZrDOS"                          "clone of a clone" \
24217309Snwhitehorn        "MSDOS"  "Microsoft \ZrDOS"                       "\ZbDOS\Zn: \Zb\Z3D\Znisk \Zb\Z3O\Znperating \Zb\Z3S\Znystem, originally for an IBM contract, hence using the same jargon" 2> $tempfile
25217309Snwhitehorn
26217309Snwhitehornretval=$?
27217309Snwhitehorn
28217309Snwhitehorn. ./report-tempfile
29