1217309Snwhitehorn#!/bin/sh
2217309Snwhitehorn# $Id: inputbox4,v 1.7 2010/01/13 10:28:12 tom Exp $
3217309Snwhitehorn# An example which does not use temporary files, as suggested by Cary Evans:
4217309Snwhitehorn
5217309Snwhitehorn. ./setup-vars
6217309Snwhitehorn
7217309Snwhitehornexec 3>&1
8217309SnwhitehornRESULT=`$DIALOG --title "INPUT BOX" --clear "$@" \
9217309Snwhitehorn        --inputbox "Hi, this is an input dialog box. You can use \n
10217309Snwhitehornthis to ask questions that require the user \n
11217309Snwhitehornto input a string as the answer. You can \n
12217309Snwhitehorninput strings of length longer than the \n
13217309Snwhitehornwidth of the input box, in that case, the \n
14217309Snwhitehorninput field will be automatically scrolled. \n
15217309SnwhitehornYou can use BACKSPACE to correct errors. \n\n
16217309SnwhitehornTry entering your name below:" 16 51 2>&1 1>&3`
17217309Snwhitehornretval=$?
18217309Snwhitehornexec 3>&-
19217309Snwhitehorn
20217309Snwhitehorn. ./report-string
21