| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # $Id: msgbox4-8bit,v 1.8 2020/11/26 00:26:09 tom Exp $ |
| 3 | |
| 4 | . ./setup-varsscip-shell source . . `./setup-vars`. |
| 5 | |
| 6 | . ./testdata-8bitscip-shell source . . `./testdata-8bit`. |
| 7 | |
| 8 | width=30 |
| 9 | while testscip-shell system . . test. $width != 61 |
| 10 | do |
| 11 | $DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \ |
| 12 | --msgbox "\ |
| 13 | This sample uses characters which are non-printing in POSIX locale. |
| 14 | |
| 15 | \Z1`./rotated-data 0 "$SAMPLE"` \Z2`./rotated-data 1 "$SAMPLE"` \Z3`./rotated-data 2 "$SAMPLE"` \Z4`./rotated-data 3 "$SAMPLE"`\Zn |
| 16 | |
| 17 | Hi, this is a simple message box. You can use this to \ |
| 18 | display any message you like. The box will remain until \ |
| 19 | you press the ENTER key." 22 $width |
| 20 | returncode=$? |
| 21 | |
| 22 | case $returncode in |
| 23 | $DIALOG_OK) |
| 24 | ;; |
| 25 | *) |
| 26 | . ./report-buttonscip-shell source . . `./report-button`.; |
| 27 | exit |
| 28 | ;; |
| 29 | esac |
| 30 | |
| 31 | width=`exprscip-shell system . . expr. $width + 1` |
| 32 | |
| 33 | done |