2 # $Id: inputmenu-stdout,v 1.13 2012/07/06 18:11:12 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
14 --stdout --clear --ok-label "Create" \
15 --backtitle "An Example for the use of --inputmenu:" "$@" \
16 --inputmenu "Originally I designed --inputmenu for a \
17 configuration purpose. Here is a possible piece of a configuration program. \
28 --clear --backtitle "An Example for the use of --inputmenu:" \
29 --yesno "Really quit?" 10 30
32 $DIALOG_CANCEL) returncode=99;;
37 --clear --backtitle "An Example for the use of --inputmenu:" \
45 value=`echo "$value" | sed -e 's/^RENAMED //'`
46 tag=`echo "$value" | sed -e 's/:.*//'`
47 item=`echo "$value" | sed -e 's/^[^:]*:[ ][ ]*//'`
50 Username) user="$item" ;;