| 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 | |
| 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 | returncode=$? |
| 34 | |
| 35 | . ./report-edit |