2 # $Id: inputmenu,v 1.10 2010/01/13 10:29:22 tom Exp $
3 # 2002 - written by Tobias Rittweiler <tobrit@freebits.de>
7 user="$USER" ; uid="$UID" ;
8 gid="$GROUPS" ; home="$HOME" ;
10 while [ ${returncode:-99} -ne 1 -a ${returncode:-99} -ne 250 ]; do
12 value=$("$DIALOG" --clear --ok-label "Create" \
13 --backtitle "An Example for the use of --inputmenu:" "$@" \
14 --inputmenu "Originally I designed --inputmenu for a \
15 configuration purpose. Here is a possible piece of a configuration program. \
26 "$DIALOG" --clear --backtitle "An Example for the use of --inputmenu:" \
27 --yesno "Really quit?" 10 30
30 $DIALOG_CANCEL) returncode=99;;
34 "$DIALOG" --clear --backtitle "An Example for the use of --inputmenu:" \
42 value="${value:8:${#value}}"
47 Username) user="$item";;