1217309Snwhitehorn#!/bin/sh 2217309Snwhitehorn# $Id: msgbox4-8bit,v 1.4 2010/01/13 10:20:03 tom Exp $ 3217309Snwhitehorn 4217309Snwhitehorn. ./setup-vars 5217309Snwhitehorn 6217309Snwhitehorn. ./testdata-8bit 7217309Snwhitehorn 8217309Snwhitehornwidth=30 9217309Snwhitehornwhile test $width != 61 10217309Snwhitehorndo 11217309Snwhitehorn$DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \ 12217309Snwhitehorn --msgbox "\ 13217309SnwhitehornThis sample uses characters which are non-printing in POSIX locale. 14217309Snwhitehorn 15217309Snwhitehorn\Z1`./rotated-data 0 $SAMPLE` \Z2`./rotated-data 1 $SAMPLE` \Z3`./rotated-data 2 $SAMPLE` \Z4`./rotated-data 3 $SAMPLE`\Zn 16217309Snwhitehorn 17217309SnwhitehornHi, this is a simple message box. You can use this to \ 18217309Snwhitehorndisplay any message you like. The box will remain until \ 19217309Snwhitehornyou press the ENTER key." 22 $width 20217309Snwhitehornretval=$? 21217309Snwhitehorn 22217309Snwhitehorncase $retval in 23217309Snwhitehorn $DIALOG_CANCEL) 24217309Snwhitehorn echo "Cancel pressed.";exit;; 25217309Snwhitehorn $DIALOG_ESC) 26217309Snwhitehorn echo "ESC pressed.";exit;; 27217309Snwhitehornesac 28217309Snwhitehorn 29217309Snwhitehornwidth=`expr $width + 1` 30217309Snwhitehorn 31217309Snwhitehorndone 32