14c8945a0SNathan Whitehorn#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: menubox6,v 1.10 2020/11/26 00:03:58 tom Exp $ 34c8945a0SNathan Whitehorn# example showing the --colors option 44c8945a0SNathan Whitehorn 54c8945a0SNathan Whitehorn. ./setup-vars 64c8945a0SNathan Whitehorn 74c8945a0SNathan Whitehorn. ./setup-tempfile 84c8945a0SNathan Whitehorn 94c8945a0SNathan Whitehorn$DIALOG --clear --item-help --title "MENU BOX" --colors "$@" \ 104c8945a0SNathan Whitehorn --menu "Hi, this is a \Zumenu\Zn box. You can use this to \n\ 114c8945a0SNathan Whitehornpresent a list of choices for the user to \n\ 124c8945a0SNathan Whitehornchoose. If there are more items than can fit \n\ 134c8945a0SNathan Whitehornon the screen, the menu will be scrolled. \n\ 144c8945a0SNathan WhitehornYou can use the \Z4UP/DOWN\Zn arrow keys, the first \n\ 154c8945a0SNathan Whitehornletter of the choice as a hot key, or the \n\ 164c8945a0SNathan Whitehorn\Z2number\Zn keys 1-9 to choose an option.\n\ 174c8945a0SNathan WhitehornTry it now!\n\n\ 184c8945a0SNathan Whitehorn Choose the OS you like:" 20 51 4 \ 194c8945a0SNathan Whitehorn "Linux" "The Great Unix Clone for \Zu386/486" "Why use \ZbLinux?" \ 204c8945a0SNathan Whitehorn "NetBSD" "Another free Unix Clone for \Zu386/486" "Or \ZbNetBSD?" \ 214c8945a0SNathan Whitehorn "OS/2" "IBM OS/2" "aka \"Warp\"" \ 224c8945a0SNathan Whitehorn "WIN NT" "Microsoft Windows NT" "hmm" \ 23*a96ef450SBaptiste Daroussin "PC-DOS" "IBM PC \ZrDOS" "clone of a clone" \ 24*a96ef450SBaptiste Daroussin "MS-DOS" "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 254c8945a0SNathan Whitehorn 26*a96ef450SBaptiste Daroussinreturncode=$? 274c8945a0SNathan Whitehorn 284c8945a0SNathan Whitehorn. ./report-tempfile 29