1217309Snwhitehorn#!/bin/sh
2217309Snwhitehorn# $Id: menubox7,v 1.9 2010/01/13 10:20:03 tom Exp $
3217309Snwhitehorn# example with --extra-button
4217309Snwhitehorn
5217309Snwhitehorn. ./setup-vars
6217309Snwhitehorn
7217309Snwhitehorn. ./setup-tempfile
8217309Snwhitehorn
9217309Snwhitehorn$DIALOG --clear --item-help --extra-button --extra-label "Choice" \
10217309Snwhitehorn	--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        "Linux"  "The Great Unix Clone for 386/486"    "Why use Linux?" \
21217309Snwhitehorn        "NetBSD" "Another free Unix Clone for 386/486" "Or NetBSD?" \
22217309Snwhitehorn        "OS/2"   "IBM OS/2"                            "aka \"Warp\"" \
23217309Snwhitehorn        "WIN NT" "Microsoft Windows NT"                "hmm" \
24217309Snwhitehorn        "PCDOS"  "IBM PC DOS"                          "clone of a clone" \
25217309Snwhitehorn        "MSDOS"  "Microsoft DOS"                       "DOS: Disk Operating System, originally for an IBM contract, hence using the same jargon" 2> $tempfile
26217309Snwhitehorn
27217309Snwhitehornretval=$?
28217309Snwhitehorn
29217309Snwhitehorn. ./report-tempfile
30