2011-01-13 02:21:23 +00:00
|
|
|
|
#!/bin/sh
|
2021-02-26 09:05:35 +00:00
|
|
|
|
# $Id: editbox-utf8,v 1.10 2020/11/26 00:03:58 tom Exp $
|
2011-01-13 02:21:23 +00:00
|
|
|
|
|
|
|
|
|
. ./setup-vars
|
|
|
|
|
|
|
|
|
|
. ./setup-tempfile
|
|
|
|
|
|
|
|
|
|
. ./setup-utf8
|
|
|
|
|
|
|
|
|
|
. ./setup-edit
|
|
|
|
|
|
|
|
|
|
cat << EOF > $input
|
|
|
|
|
Hi, this is a edit box. You can use this to
|
|
|
|
|
allow the user to enter or modify free-form text.
|
|
|
|
|
|
|
|
|
|
Try it now!
|
|
|
|
|
|
|
|
|
|
----------- --------------------------------
|
|
|
|
|
Choose Description of the OS you like
|
|
|
|
|
----------- --------------------------------
|
|
|
|
|
Linux The Great Unix Clone for 386/486
|
|
|
|
|
NetBSD Another free Unix Clone for 386/486
|
|
|
|
|
OS/2 IBM OS/2
|
|
|
|
|
WIN NT Microsoft Windows NT
|
|
|
|
|
PCDOS IBM PC DOS
|
|
|
|
|
MSDOS Microsoft DOS
|
|
|
|
|
----------- --------------------------------
|
|
|
|
|
----------- --------------------------------
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
$DIALOG --title "EDIT BOX" \
|
|
|
|
|
--fixed-font "$@" --editbox $input 0 0 2>$output
|
2021-02-26 09:05:35 +00:00
|
|
|
|
returncode=$?
|
2011-01-13 02:21:23 +00:00
|
|
|
|
|
|
|
|
|
. ./report-edit
|