14c8945a0SNathan Whitehorn#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: msgbox4-8bit,v 1.8 2020/11/26 00:26:09 tom Exp $ 34c8945a0SNathan Whitehorn 44c8945a0SNathan Whitehorn. ./setup-vars 54c8945a0SNathan Whitehorn 64c8945a0SNathan Whitehorn. ./testdata-8bit 74c8945a0SNathan Whitehorn 84c8945a0SNathan Whitehornwidth=30 94c8945a0SNathan Whitehornwhile test $width != 61 104c8945a0SNathan Whitehorndo 114c8945a0SNathan Whitehorn$DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \ 124c8945a0SNathan Whitehorn --msgbox "\ 134c8945a0SNathan WhitehornThis sample uses characters which are non-printing in POSIX locale. 144c8945a0SNathan Whitehorn 15*a96ef450SBaptiste Daroussin\Z1`./rotated-data 0 "$SAMPLE"` \Z2`./rotated-data 1 "$SAMPLE"` \Z3`./rotated-data 2 "$SAMPLE"` \Z4`./rotated-data 3 "$SAMPLE"`\Zn 164c8945a0SNathan Whitehorn 174c8945a0SNathan WhitehornHi, this is a simple message box. You can use this to \ 184c8945a0SNathan Whitehorndisplay any message you like. The box will remain until \ 194c8945a0SNathan Whitehornyou press the ENTER key." 22 $width 20*a96ef450SBaptiste Daroussinreturncode=$? 214c8945a0SNathan Whitehorn 22*a96ef450SBaptiste Daroussincase $returncode in 23*a96ef450SBaptiste Daroussin $DIALOG_OK) 24*a96ef450SBaptiste Daroussin ;; 25*a96ef450SBaptiste Daroussin *) 26*a96ef450SBaptiste Daroussin . ./report-button; 27*a96ef450SBaptiste Daroussin exit 28*a96ef450SBaptiste Daroussin ;; 294c8945a0SNathan Whitehornesac 304c8945a0SNathan Whitehorn 314c8945a0SNathan Whitehornwidth=`expr $width + 1` 324c8945a0SNathan Whitehorn 334c8945a0SNathan Whitehorndone 34