head	1.6;
access;
symbols
	RELENG_8_4:1.6.0.2
	RELENG_8_3_0_RELEASE:1.5
	RELENG_8_3:1.5.0.68
	RELENG_8_3_BP:1.5
	RELENG_7_4_0_RELEASE:1.5
	RELENG_8_2_0_RELEASE:1.5
	RELENG_7_4:1.5.0.66
	RELENG_7_4_BP:1.5
	RELENG_8_2:1.5.0.64
	RELENG_8_2_BP:1.5
	RELENG_8_1_0_RELEASE:1.5
	RELENG_8_1:1.5.0.62
	RELENG_8_1_BP:1.5
	RELENG_7_3_0_RELEASE:1.5
	RELENG_7_3:1.5.0.60
	RELENG_7_3_BP:1.5
	RELENG_8_0_0_RELEASE:1.5
	RELENG_8_0:1.5.0.58
	RELENG_8_0_BP:1.5
	RELENG_8:1.5.0.56
	RELENG_8_BP:1.5
	RELENG_7_2_0_RELEASE:1.5
	RELENG_7_2:1.5.0.54
	RELENG_7_2_BP:1.5
	RELENG_7_1_0_RELEASE:1.5
	RELENG_6_4_0_RELEASE:1.5
	RELENG_7_1:1.5.0.52
	RELENG_7_1_BP:1.5
	RELENG_6_4:1.5.0.50
	RELENG_6_4_BP:1.5
	RELENG_7_0_0_RELEASE:1.5
	RELENG_6_3_0_RELEASE:1.5
	RELENG_7_0:1.5.0.48
	RELENG_7_0_BP:1.5
	RELENG_6_3:1.5.0.46
	RELENG_6_3_BP:1.5
	RELENG_7:1.5.0.44
	RELENG_7_BP:1.5
	RELENG_6_2_0_RELEASE:1.5
	RELENG_6_2:1.5.0.42
	RELENG_6_2_BP:1.5
	RELENG_5_5_0_RELEASE:1.5
	RELENG_5_5:1.5.0.40
	RELENG_5_5_BP:1.5
	RELENG_6_1_0_RELEASE:1.5
	RELENG_6_1:1.5.0.38
	RELENG_6_1_BP:1.5
	RELENG_6_0_0_RELEASE:1.5
	RELENG_6_0:1.5.0.36
	RELENG_6_0_BP:1.5
	RELENG_6:1.5.0.34
	RELENG_6_BP:1.5
	RELENG_5_4_0_RELEASE:1.5
	RELENG_5_4:1.5.0.32
	RELENG_5_4_BP:1.5
	RELENG_4_11_0_RELEASE:1.5
	RELENG_4_11:1.5.0.30
	RELENG_4_11_BP:1.5
	RELENG_5_3_0_RELEASE:1.5
	RELENG_5_3:1.5.0.28
	RELENG_5_3_BP:1.5
	RELENG_5:1.5.0.26
	RELENG_5_BP:1.5
	RELENG_4_10_0_RELEASE:1.5
	RELENG_4_10:1.5.0.24
	RELENG_4_10_BP:1.5
	RELENG_5_2_1_RELEASE:1.5
	RELENG_5_2_0_RELEASE:1.5
	RELENG_5_2:1.5.0.22
	RELENG_5_2_BP:1.5
	RELENG_4_9_0_RELEASE:1.5
	RELENG_4_9:1.5.0.20
	RELENG_4_9_BP:1.5
	RELENG_5_1_0_RELEASE:1.5
	RELENG_5_1:1.5.0.18
	RELENG_5_1_BP:1.5
	RELENG_4_8_0_RELEASE:1.5
	RELENG_4_8:1.5.0.16
	RELENG_4_8_BP:1.5
	RELENG_5_0_0_RELEASE:1.5
	RELENG_5_0:1.5.0.14
	RELENG_5_0_BP:1.5
	RELENG_4_7_0_RELEASE:1.5
	RELENG_4_7:1.5.0.12
	RELENG_4_7_BP:1.5
	RELENG_4_6_2_RELEASE:1.5
	RELENG_4_6_1_RELEASE:1.5
	RELENG_4_6_0_RELEASE:1.5
	RELENG_4_6:1.5.0.10
	RELENG_4_6_BP:1.5
	RELENG_4_5_0_RELEASE:1.5
	RELENG_4_5:1.5.0.8
	RELENG_4_5_BP:1.5
	RELENG_4_4_0_RELEASE:1.5
	RELENG_4_4:1.5.0.6
	RELENG_4_4_BP:1.5
	RELENG_4_3_0_RELEASE:1.5
	RELENG_4_3:1.5.0.4
	RELENG_4_3_BP:1.5
	RELENG_4_2_0_RELEASE:1.5
	RELENG_4_1_1_RELEASE:1.5
	PRE_SMPNG:1.5
	RELENG_4_1_0_RELEASE:1.5
	RELENG_3_5_0_RELEASE:1.4.8.1
	RELENG_4_0_0_RELEASE:1.5
	RELENG_4:1.5.0.2
	RELENG_4_BP:1.5
	RELENG_3_4_0_RELEASE:1.4.8.1
	RELENG_3_3_0_RELEASE:1.4.8.1
	RELENG_3_2_PAO:1.4.8.1.0.2
	RELENG_3_2_PAO_BP:1.4.8.1
	RELENG_3_2_0_RELEASE:1.4.8.1
	RELENG_3_1_0_RELEASE:1.4.8.1
	RELENG_3:1.4.0.8
	RELENG_3_BP:1.4
	RELENG_2_2_8_RELEASE:1.4
	RELENG_3_0_0_RELEASE:1.4
	RELENG_2_2_7_RELEASE:1.4
	RELENG_2_2_6_RELEASE:1.4
	RELENG_2_2_5_RELEASE:1.4
	RELENG_2_2_2_RELEASE:1.4
	RELENG_2_2_1_RELEASE:1.4
	RELENG_2_2_0_RELEASE:1.4
	RELENG_2_1_7_RELEASE:1.4
	RELENG_2_1_6_1_RELEASE:1.4
	RELENG_2_1_6_RELEASE:1.4
	RELENG_2_2:1.4.0.6
	RELENG_2_2_BP:1.4
	RELENG_2_1_5_RELEASE:1.4
	RELENG_2_1_0_RELEASE:1.4
	RELENG_2_1_0:1.4.0.4
	RELENG_2_1_0_BP:1.4
	RELENG_2_0_5_RELEASE:1.4
	RELENG_2_0_5:1.4.0.2
	RELENG_2_0_5_BP:1.4
	RELENG_2_0_5_ALPHA:1.4
	RELEASE_2_0:1.3
	BETA_2_0:1.3
	ALPHA_2_0:1.2.0.2
	dialog_0_4:1.1.1.1
	savio_lam:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2011.01.12.14.55.02;	author nwhitehorn;	state dead;
branches
	1.6.2.1;
next	1.5;

1.5
date	99.01.24.07.10.34;	author rnordier;	state Exp;
branches;
next	1.4;

1.4
date	95.02.23.22.42.42;	author ache;	state Exp;
branches
	1.4.8.1;
next	1.3;

1.3
date	94.11.16.14.47.15;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	94.10.11.23.52.15;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	94.10.08.15.16.40;	author ache;	state Exp;
branches
	1.1.1.1;
next	;

1.6.2.1
date	2011.01.12.14.55.02;	author svnexp;	state dead;
branches;
next	1.6.2.2;

1.6.2.2
date	2013.03.28.13.02.49;	author svnexp;	state Exp;
branches;
next	;

1.4.8.1
date	99.01.24.07.13.35;	author rnordier;	state Exp;
branches;
next	;

1.1.1.1
date	94.10.08.15.16.41;	author ache;	state Exp;
branches;
next	;


desc
@@


1.6
log
@SVN rev 217309 on 2011-01-12 14:55:02Z by nwhitehorn

Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.

__FreeBSD_version is now 900030.

Discussed on:	-current
Approved by:	core
Obtained from:	http://invisible-island.net/dialog
@
text
@#!/bin/sh
DIALOG=${DIALOG=/usr/bin/dialog}

$DIALOG --clear --title "MENU BOX" \
	--hline "Press 1-9, Up/Down, first letter or Enter" \
        --menu "Hi, this is a menu box. You can use this to \n\
present a list of choices for the user to \n\
choose. If there are more items than can fit \n\
on the screen, the menu will be scrolled. \n\
You can use the UP/DOWN arrow keys, the first \n\
letter of the choice as a hot key, or the \n\
number keys 1-9 to choose an option.\n\
Try it now!\n\n\
	  Choose the OS you like:" -1 -1 4 \
	"FreeBSD" "A Real Operating System for Real Users" \
	"Linux"  "Another free Unix Clone for 386/486" \
        "OS/2" "IBM OS/2" \
        "WIN NT" "Microsoft Windows NT" \
        "PCDOS"  "IBM PC DOS" \
        "MSDOS"  "Microsoft DOS" 2> /tmp/menu.tmp.$$

retval=$?

choice=`cat /tmp/menu.tmp.$$`
rm -f /tmp/menu.tmp.$$

case $retval in
  0)
    echo "'$choice' chosen.";;
  1)
    echo "Cancel pressed.";;
  255)
    [ -z "$choice" ] || echo $choice ;
    echo "ESC pressed.";;
esac
@


1.6.2.1
log
@file menubox was added on branch RELENG_8_4 on 2013-03-28 13:02:49 +0000
@
text
@d1 35
@


1.6.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 35
#!/bin/sh
DIALOG=${DIALOG=/usr/bin/dialog}

$DIALOG --clear --title "MENU BOX" \
	--hline "Press 1-9, Up/Down, first letter or Enter" \
        --menu "Hi, this is a menu box. You can use this to \n\
present a list of choices for the user to \n\
choose. If there are more items than can fit \n\
on the screen, the menu will be scrolled. \n\
You can use the UP/DOWN arrow keys, the first \n\
letter of the choice as a hot key, or the \n\
number keys 1-9 to choose an option.\n\
Try it now!\n\n\
	  Choose the OS you like:" -1 -1 4 \
	"FreeBSD" "A Real Operating System for Real Users" \
	"Linux"  "Another free Unix Clone for 386/486" \
        "OS/2" "IBM OS/2" \
        "WIN NT" "Microsoft Windows NT" \
        "PCDOS"  "IBM PC DOS" \
        "MSDOS"  "Microsoft DOS" 2> /tmp/menu.tmp.$$

retval=$?

choice=`cat /tmp/menu.tmp.$$`
rm -f /tmp/menu.tmp.$$

case $retval in
  0)
    echo "'$choice' chosen.";;
  1)
    echo "Cancel pressed.";;
  255)
    [ -z "$choice" ] || echo $choice ;
    echo "ESC pressed.";;
esac
@


1.5
log
@Drop outdated FreeBSD version number from test script.
Submitted by	: Sue Blake <sue@@vedanix.welearn.com.au>
PR		: 9650
@
text
@@


1.4
log
@Implement --hline "line" and --hfile file
@
text
@d15 1
a15 1
	"FreeBSD 2.0" "A Real Operating System for Real Users" \
@


1.4.8.1
log
@MFC: Drop outdated FreeBSD version number from test script.
@
text
@d15 1
a15 1
	"FreeBSD" "A Real Operating System for Real Users" \
@


1.3
log
@Update with new autosizing code, use -1 -1 now
@
text
@d5 1
@


1.2
log
@Output error diagnostics, if occurse.
Add radiolist test.
@
text
@d13 1
a13 1
	  Choose the OS you like:" 20 59 4 \
@


1.1
log
@Initial revision
@
text
@d32 1
@


1.1.1.1
log
@Moved from ports, arrow keys allowed to edit input,
back tab key understanded now
@
text
@@
