2 # $Id: inputmenu1,v 1.9 2012/07/01 00:59:54 tom Exp $
4 # "inputmenu" rewritten into Bourne shell.
8 backtitle="An Example for the use of --inputmenu:"
10 ids=`id|sed -e 's/([^)]*)//g'`
11 uid=`echo "$ids" | sed -e 's/^uid=//' -e 's/ .*//'`
12 gid=`echo "$ids" | sed -e 's/^.* gid=//' -e 's/ .*//'`
18 while test $returncode != 1 && test $returncode != 250
21 value=`$DIALOG --clear --ok-label "Create" \
22 --backtitle "$backtitle" "$@" \
23 --inputmenu "Originally I designed --inputmenu for a \
24 configuration purpose. Here is a possible piece of a configuration program." \
38 --backtitle "$backtitle" \
39 --yesno "Really quit?" 10 30
52 --backtitle "$backtitle" \
60 tag=`echo "$value" |sed -e 's/^RENAMED //' -e 's/:.*//'`
61 item=`echo "$value" |sed -e 's/^[^:]*:[ ]*//' -e 's/[ ]*$//'`