xref: /freebsd/contrib/dialog/samples/editbox-utf8 (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1*4c8945a0SNathan Whitehorn#!/bin/sh
2*4c8945a0SNathan Whitehorn# $Id: editbox-utf8,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. ./setup-utf8
9*4c8945a0SNathan Whitehorn
10*4c8945a0SNathan Whitehorn. ./setup-edit
11*4c8945a0SNathan Whitehorn
12*4c8945a0SNathan Whitehorncat << EOF > $input
13*4c8945a0SNathan WhitehornHi, this is a edit box. You can use this to 
14*4c8945a0SNathan Whitehornallow the user to enter or modify free-form text.
15*4c8945a0SNathan Whitehorn
16*4c8945a0SNathan WhitehornTry it now!
17*4c8945a0SNathan Whitehorn
18*4c8945a0SNathan Whitehorn        -----------     --------------------------------
19*4c8945a0SNathan Whitehorn	Choose		Description of the OS you like
20*4c8945a0SNathan Whitehorn	-----------	--------------------------------
21*4c8945a0SNathan Whitehorn	Linux	The Great Unix Clone for 386/486 
22*4c8945a0SNathan Whitehorn	NetBSD	Another free Unix Clone for 386/486 
23*4c8945a0SNathan Whitehorn	OS/2		IBM OS/2 
24*4c8945a0SNathan Whitehorn	WIN NT	Microsoft Windows NT 
25*4c8945a0SNathan Whitehorn	PCDOS	IBM PC DOS 
26*4c8945a0SNathan Whitehorn	MSDOS	Microsoft DOS
27*4c8945a0SNathan Whitehorn	-----------	--------------------------------
28*4c8945a0SNathan Whitehorn        -----------     --------------------------------
29*4c8945a0SNathan WhitehornEOF
30*4c8945a0SNathan Whitehorn
31*4c8945a0SNathan Whitehorn$DIALOG --title "EDIT BOX" \
32*4c8945a0SNathan Whitehorn	--fixed-font "$@" --editbox $input 0 0 2>$output
33*4c8945a0SNathan Whitehornretval=$?
34*4c8945a0SNathan Whitehorn
35*4c8945a0SNathan Whitehorn. ./report-edit
36