2 # $Id: passwordform1-utf8,v 1.7 2010/01/13 10:47:35 tom Exp $
8 backtitle="An Example for the use of --passwordform:"
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 --ok-label "Submit" \
22 --backtitle "$backtitle" \
24 --passwordform "Here is a possible piece of a configuration program." \
26 "Username:" 1 1 "$user" 1 10 10 0 \
27 "UID:" 2 1 "$uid" 2 10 8 0 \
28 "GID:" 3 1 "$gid" 3 10 8 0 \
29 "HOME:" 4 1 "$home" 4 10 40 0 \
34 show=`echo "$value" |sed -e 's/^/ /'`
40 --backtitle "$backtitle" \
41 --yesno "Really quit?" 10 30
54 --backtitle "$backtitle" --no-collapse --cr-wrap \
55 --msgbox "Resulting data:\n\
59 echo "Button 2 (Help) pressed."
63 echo "Button 3 (Extra) pressed."
67 echo "Return code was $returncode"