xref: /freebsd/contrib/dialog/samples/menubox4 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
1#!/bin/sh
2# $Id: menubox4,v 1.10 2020/11/26 00:03:58 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8$DIALOG --clear --item-help --title "MENU BOX" "$@" \
9        --menu "Hi, this is a menu box. You can use this to \n\
10present a list of choices for the user to \n\
11choose. If there are more items than can fit \n\
12on the screen, the menu will be scrolled. \n\
13You can use the UP/DOWN arrow keys, the first \n\
14letter of the choice as a hot key, or the \n\
15number keys 1-9 to choose an option.\n\
16Try 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        "PC-DOS" "IBM PC DOS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                          "clone of a clone" \
23        "MS-DOS" "Microsoft DOS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                       "DOS: Disk Operating System, originally for an IBM contract, hence using the same jargon" 2> $tempfile
24
25returncode=$?
26
27. ./report-tempfile
28