xref: /freebsd/contrib/dialog/samples/editbox-utf8 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: editbox-utf8,v 1.10 2020/11/26 00:03:58 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn. ./setup-vars
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorn. ./setup-tempfile
74c8945a0SNathan Whitehorn
84c8945a0SNathan Whitehorn. ./setup-utf8
94c8945a0SNathan Whitehorn
104c8945a0SNathan Whitehorn. ./setup-edit
114c8945a0SNathan Whitehorn
124c8945a0SNathan Whitehorncat << EOF > $input
134c8945a0SNathan WhitehornHi, this is a edit box. You can use this to 
144c8945a0SNathan Whitehornallow the user to enter or modify free-form text.
154c8945a0SNathan Whitehorn
164c8945a0SNathan WhitehornTry it now!
174c8945a0SNathan Whitehorn
184c8945a0SNathan Whitehorn        -----------     --------------------------------
194c8945a0SNathan Whitehorn	Choose		Description of the OS you like
204c8945a0SNathan Whitehorn	-----------	--------------------------------
214c8945a0SNathan Whitehorn	Linux	The Great Unix Clone for 386/486 
224c8945a0SNathan Whitehorn	NetBSD	Another free Unix Clone for 386/486 
234c8945a0SNathan Whitehorn	OS/2		IBM OS/2 
244c8945a0SNathan Whitehorn	WIN NT	Microsoft Windows NT 
254c8945a0SNathan Whitehorn	PCDOS	IBM PC DOS 
264c8945a0SNathan Whitehorn	MSDOS	Microsoft DOS
274c8945a0SNathan Whitehorn	-----------	--------------------------------
284c8945a0SNathan Whitehorn        -----------     --------------------------------
294c8945a0SNathan WhitehornEOF
304c8945a0SNathan Whitehorn
314c8945a0SNathan Whitehorn$DIALOG --title "EDIT BOX" \
324c8945a0SNathan Whitehorn	--fixed-font "$@" --editbox $input 0 0 2>$output
33*a96ef450SBaptiste Daroussinreturncode=$?
344c8945a0SNathan Whitehorn
354c8945a0SNathan Whitehorn. ./report-edit
36