]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/menubox5
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / menubox5
1 #!/bin/sh
2 # $Id: menubox5,v 1.9 2010/01/13 10:20:03 tom Exp $
3
4 . ./setup-vars
5
6 . ./setup-tempfile
7
8 $DIALOG --clear --help-button --item-help --title "MENU BOX" "$@" \
9         --menu "Hi, this is a menu box. You can use this to \n\
10 present a list of choices for the user to \n\
11 choose. If there are more items than can fit \n\
12 on the screen, the menu will be scrolled. \n\
13 You can use the UP/DOWN arrow keys, the first \n\
14 letter of the choice as a hot key, or the \n\
15 number keys 1-9 to choose an option.\n\
16 Try it now!\n\n\
17           Choose the OS you like:" 20 51 4 \
18         "Linux"  "The Great Unix Clone for 386/486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"    "Why use Linux?" \
19         "NetBSD" "Another free Unix Clone for 386/486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "Or NetBSD?" \
20         "OS/2"   "IBM OS/2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                            "aka \"Warp\"" \
21         "WIN NT" "Microsoft Windows NT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                "hmm" \
22         "WIN 2K" "Microsoft Windows 2000 xxxxxxxxxxxxxxxxxxxxxxxxxxxx"                "hmm" \
23         "WIN XP" "Microsoft Windows XP (son of Windows 95) xxxxxxxxxx"                "hmm" \
24         "WIN 95" "Microsoft Windows 95 (son of MSDOS) xxxxxxxxxxxxxxx"                "hmm" \
25         "PCDOS"  "IBM PC DOS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                          "clone of a clone" \
26         "MSDOS"  "Microsoft DOS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                       "DOS: Disk Operating System, originally for an IBM contract, hence using the same jargon" 2> $tempfile
27
28 retval=$?
29
30 . ./report-tempfile