freebsd-src/contrib/dialog/samples/editbox-utf8

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
857 B
Plaintext
Raw Normal View History

2011-01-13 02:21:23 +00:00
#!/bin/sh
# $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
----------- --------------------------------
The Great Unix Clone for 386/486
Another free Unix Clone for 386/486
/ IBM OS/2
Microsoft Windows NT
IBM PC DOS
Microsoft DOS
----------- --------------------------------
----------- --------------------------------
EOF
$DIALOG --title "EDIT BOX" \
--fixed-font "$@" --editbox $input 0 0 2>$output
returncode=$?
2011-01-13 02:21:23 +00:00
. ./report-edit