xref: /freebsd/contrib/dialog/samples/editbox-utf8 (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
1#!/bin/sh
2# $Id: editbox-utf8,v 1.10 2020/11/26 00:03:58 tom Exp $
3
4. ./setup-vars
5
6. ./setup-tempfile
7
8. ./setup-utf8
9
10. ./setup-edit
11
12cat << EOF > $input
13Hi, this is a edit box. You can use this to 
14allow the user to enter or modify free-form text.
15
16Try it now!
17
18        -----------     --------------------------------
19	Choose		Description of the OS you like
20	-----------	--------------------------------
21	Linux	The Great Unix Clone for 386/486 
22	NetBSD	Another free Unix Clone for 386/486 
23	OS/2		IBM OS/2 
24	WIN NT	Microsoft Windows NT 
25	PCDOS	IBM PC DOS 
26	MSDOS	Microsoft DOS
27	-----------	--------------------------------
28        -----------     --------------------------------
29EOF
30
31$DIALOG --title "EDIT BOX" \
32	--fixed-font "$@" --editbox $input 0 0 2>$output
33returncode=$?
34
35. ./report-edit
36