PageRenderTime 20ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/contrib/dialog/samples/menubox

https://bitbucket.org/freebsd/freebsd-head/
Shell | 27 lines | 20 code | 5 blank | 2 comment | 3 complexity | dea4b3ef961969d7c926a353119b925c MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
 1#!/bin/sh
 2# $Id: menubox,v 1.11 2010/01/13 10:20:03 tom Exp $
 3
 4. ./setup-vars
 5
 6. ./setup-tempfile
 7
 8$DIALOG --clear --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" \
19        "NetBSD" "Another free Unix Clone for 386/486" \
20        "OS/2" "IBM OS/2" \
21        "WIN NT" "Microsoft Windows NT" \
22        "PCDOS"  "IBM PC DOS" \
23        "MSDOS"  "Microsoft DOS" 2> $tempfile
24
25retval=$?
26
27. ./report-tempfile