xref: /freebsd/contrib/dialog/samples/inputbox-help (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: inputbox-help,v 1.7 2020/11/26 00:03:58 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn. ./setup-vars
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorn. ./setup-tempfile
74c8945a0SNathan Whitehorn
84c8945a0SNathan Whitehorn$DIALOG --title "INPUT BOX" --clear \
94c8945a0SNathan Whitehorn	--help-button "$@" \
104c8945a0SNathan Whitehorn        --inputbox "Hi, this is an input dialog box. You can use \n
114c8945a0SNathan Whitehornthis to ask questions that require the user \n
124c8945a0SNathan Whitehornto input a string as the answer. You can \n
134c8945a0SNathan Whitehorninput strings of length longer than the \n
144c8945a0SNathan Whitehornwidth of the input box, in that case, the \n
154c8945a0SNathan Whitehorninput field will be automatically scrolled. \n
164c8945a0SNathan WhitehornYou can use BACKSPACE to correct errors. \n\n
174c8945a0SNathan WhitehornTry entering your name below:" 16 51 2> $tempfile
184c8945a0SNathan Whitehorn
19*a96ef450SBaptiste Daroussinreturncode=$?
204c8945a0SNathan Whitehorn
214c8945a0SNathan Whitehorn. ./report-tempfile
22