msgbox4-8bit revision 217309
150472Speter#!/bin/sh 237Srgrimes# $Id: msgbox4-8bit,v 1.4 2010/01/13 10:20:03 tom Exp $ 378822Snik 450203Srgrimes. ./setup-vars 537Srgrimes 639161Sobrien. ./testdata-8bit 739490Sobrien 88571Srgrimeswidth=30 92878Srgrimeswhile test $width != 61 1072515Srudo 1172515Sru$DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \ 128571Srgrimes --msgbox "\ 132878SrgrimesThis sample uses characters which are non-printing in POSIX locale. 148571Srgrimes 158571Srgrimes\Z1`./rotated-data 0 $SAMPLE` \Z2`./rotated-data 1 $SAMPLE` \Z3`./rotated-data 2 $SAMPLE` \Z4`./rotated-data 3 $SAMPLE`\Zn 1672515Sru 172878SrgrimesHi, this is a simple message box. You can use this to \ 1872515Srudisplay any message you like. The box will remain until \ 19155345Srwatsonyou press the ENTER key." 22 $width 20155197Srwatsonretval=$? 21243752Srwatson 22243752Srwatsoncase $retval in 23243752Srwatson $DIALOG_CANCEL) 24243752Srwatson echo "Cancel pressed.";exit;; 25244770Sume $DIALOG_ESC) 26255243Sdes echo "ESC pressed.";exit;; 27255243Sdesesac 28155345Srwatson 2972515Sruwidth=`expr $width + 1` 302878Srgrimes 31258762Sdelphijdone 32219820Sjeff