2 # $Id: inputmenu-stdout,v 1.8 2010/01/13 10:30:14 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
11 value="$("$DIALOG" --stdout --clear --ok-label "Create" \
12 --backtitle "An Example for the use of --inputmenu:" "$@" \
13 --inputmenu "Originally I designed --inputmenu for a \
14 configuration purpose. Here is a possible piece of a configuration program.
15 " 20 50 10 "Username:" "$user" "UID:" "$uid" "GID:" "$gid" "HOME:" "$home")"
19 "$DIALOG" --clear --backtitle "An Example for the use of --inputmenu:" \
20 --yesno "Really quit?" 10 30
23 $DIALOG_CANCEL) returncode=99;;
27 "$DIALOG" --clear --backtitle "An Example for the use of --inputmenu:" \
35 value="${value:8:${#value}}"
40 Username) user="$item";;