xref: /freebsd/contrib/dialog/samples/msgbox4-eucjp (revision cd0d51baaa4509a1db83251a601d34404d20c990)
1#!/bin/sh
2# $Id: msgbox4-eucjp,v 1.5 2010/01/13 10:20:03 tom Exp $
3
4. ./setup-vars
5
6width=35
7while test $width != 61
8do
9$DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse "$@" \
10        --msgbox "\
11This sample is written in EUC-JP.
12There are several checking points:
13(1) whether the fullwidth characters are displayed well or not,
14(2) whether the width of characters are evaluated properly, and
15(3) whether the character at line-folding is lost or not.
16
17�����������������������������������ĤƤȤʤˤ̤ͤ�
18��������������������������������������������������
19���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ�
20
21Hi, this is a simple message box.  You can use this to \
22display any message you like.  The box will remain until \
23you press the ENTER key." 22 $width
24width=`expr $width + 1`
25done
26