1217309Snwhitehorn#!/bin/sh 2217309Snwhitehorn# $Id: inputbox7,v 1.7 2010/01/13 10:20:03 tom Exp $ 3217309Snwhitehorn# An example which produces two widget outputs. 4217309Snwhitehorn 5217309Snwhitehorn. ./setup-vars 6217309Snwhitehorn 7217309SnwhitehornMSG='Hi, this is an input dialog box. You can use \n 8217309Snwhitehornthis to ask questions that require the user \n 9217309Snwhitehornto input a string as the answer. You can \n 10217309Snwhitehorninput strings of length longer than the \n 11217309Snwhitehornwidth of the input box, in that case, the \n 12217309Snwhitehorninput field will be automatically scrolled. \n 13217309SnwhitehornYou can use BACKSPACE to correct errors. \n\n 14217309SnwhitehornTry entering your name below:' 15217309Snwhitehorn 16217309Snwhitehorn# separate with a line-break (newline) 17217309SnwhitehornSEP=' 18217309Snwhitehorn' 19217309Snwhitehorn 20217309Snwhitehornexec 3>&1 21217309SnwhitehornRESULT=`$DIALOG --title "INPUT BOX" --clear --separate-widget "$SEP" "$@" \ 22217309Snwhitehorn --inputbox "$MSG" 16 51 \ 23217309Snwhitehorn --title "ANOTHER INPUT BOX" \ 24217309Snwhitehorn --inputbox "$MSG" 16 51 \ 25217309Snwhitehorn2>&1 1>&3` 26217309Snwhitehornretval=$? 27217309Snwhitehornexec 3>&- 28217309Snwhitehorn 29217309Snwhitehorn. ./report-string 30