2 # $Id: inputmenu,v 1.15 2012/07/06 18:11:21 tom Exp $
3 # 2002 - written by Tobias Rittweiler <tobrit@freebits.de>
8 uid=`id|sed -e 's/^uid=//' -e 's/(.*//'`
9 gid=`id|sed -e 's/^.*gid=//' -e 's/(.*//'`
12 while [ ${returncode:-99} -ne 1 -a ${returncode:-99} -ne 250 ]; do
15 --clear --ok-label "Create" \
16 --backtitle "An Example for the use of --inputmenu:" "$@" \
17 --inputmenu "Originally I designed --inputmenu for a \
18 configuration purpose. Here is a possible piece of a configuration program. \
30 --clear --backtitle "An Example for the use of --inputmenu:" \
31 --yesno "Really quit?" 10 30
34 $DIALOG_CANCEL) returncode=99;;
39 --clear --backtitle "An Example for the use of --inputmenu:" \
47 value=`echo "$value" | sed -e 's/^RENAMED //'`
48 tag=`echo "$value" | sed -e 's/:.*//'`
49 item=`echo "$value" | sed -e 's/^[^:]*:[ ][ ]*//'`
52 Username) user="$item" ;;