xref: /freebsd/contrib/dialog/samples/inputbox2 (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1*4c8945a0SNathan Whitehorn#!/bin/sh
2*4c8945a0SNathan Whitehorn# $Id: inputbox2,v 1.9 2010/01/13 10:20:03 tom Exp $
3*4c8945a0SNathan Whitehorn
4*4c8945a0SNathan Whitehorn. ./setup-vars
5*4c8945a0SNathan Whitehorn
6*4c8945a0SNathan Whitehorn. ./setup-tempfile
7*4c8945a0SNathan Whitehorn
8*4c8945a0SNathan Whitehorn$DIALOG --title "INPUT BOX" --clear "$@" \
9*4c8945a0SNathan Whitehorn        --inputbox "Hi, this is an input dialog box. You can use \n
10*4c8945a0SNathan Whitehornthis to ask questions that require the user \n
11*4c8945a0SNathan Whitehornto input a string as the answer. You can \n
12*4c8945a0SNathan Whitehorninput strings of length longer than the \n
13*4c8945a0SNathan Whitehornwidth of the input box, in that case, the \n
14*4c8945a0SNathan Whitehorninput field will be automatically scrolled. \n
15*4c8945a0SNathan WhitehornYou can use BACKSPACE to correct errors. \n\n
16*4c8945a0SNathan WhitehornTry entering your name below:" 16 51 2> $tempfile
17*4c8945a0SNathan Whitehorn
18*4c8945a0SNathan Whitehornretval=$?
19*4c8945a0SNathan Whitehorn
20*4c8945a0SNathan Whitehorn. ./report-tempfile
21