diff options
| author | Devin Teske <dteske@FreeBSD.org> | 2013-09-27 18:41:31 +0000 |
|---|---|---|
| committer | Devin Teske <dteske@FreeBSD.org> | 2013-09-27 18:41:31 +0000 |
| commit | 42c10d5d7d5ba2fde22838d594f29d2f73b3ead2 (patch) | |
| tree | 5889332d60b55b3d5c4ac0fbfff31ca9ecfdb6d1 /samples | |
| parent | c1ba58ff2b09604bd03d15a844fb5c09e2e38ef6 (diff) | |
Notes
Diffstat (limited to 'samples')
| -rwxr-xr-x | samples/inputbox6-utf8 | 9 | ||||
| -rw-r--r-- | samples/report-tempfile | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/samples/inputbox6-utf8 b/samples/inputbox6-utf8 index 605382f20a02..056757ed77e9 100755 --- a/samples/inputbox6-utf8 +++ b/samples/inputbox6-utf8 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: inputbox6-utf8,v 1.8 2010/01/13 10:20:03 tom Exp $ +# $Id: inputbox6-utf8,v 1.9 2013/09/24 00:06:02 tom Exp $ . ./setup-vars @@ -7,10 +7,11 @@ . ./setup-utf8 +TITLE="あいうえお" + $DIALOG \ ---title `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` "$@" \ ---inputbox `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` \ -10 20 "D.O.G" 2>$tempfile +--title "$TITLE" "$@" \ +--inputbox "$TITLE" 10 20 "D.O.G" 2>$tempfile retval=$? diff --git a/samples/report-tempfile b/samples/report-tempfile index 32c04e0cb54d..4c5f0994e8a6 100644 --- a/samples/report-tempfile +++ b/samples/report-tempfile @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: report-tempfile,v 1.4 2012/06/29 09:29:47 tom Exp $ +# $Id: report-tempfile,v 1.5 2013/09/02 18:03:13 tom Exp $ # Report results in a temporary-file. # vile:shmode @@ -9,11 +9,11 @@ case $retval in $DIALOG_CANCEL) echo "Cancel pressed.";; $DIALOG_HELP) - echo "Help pressed.";; + echo "Help pressed: `cat $tempfile`";; $DIALOG_EXTRA) echo "Extra button pressed.";; $DIALOG_ITEM_HELP) - echo "Item-help button pressed.";; + echo "Item-help button pressed: `cat $tempfile`";; $DIALOG_ESC) if test -s $tempfile ; then cat $tempfile |
