]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/dialog/samples/editbox-utf8
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / dialog / samples / editbox-utf8
1 #!/bin/sh
2 # $Id: editbox-utf8,v 1.9 2010/01/13 10:20:03 tom Exp $
3
4 . ./setup-vars
5
6 . ./setup-tempfile
7
8 . ./setup-utf8
9
10 . ./setup-edit
11
12 cat << EOF > $input
13 Hi, this is a edit box. You can use this to 
14 allow the user to enter or modify free-form text.
15
16 Try 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         -----------     --------------------------------
29 EOF
30
31 $DIALOG --title "EDIT BOX" \
32         --fixed-font "$@" --editbox $input 0 0 2>$output
33 retval=$?
34
35 . ./report-edit