PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/dialog/samples/msgbox4-eucjp

https://bitbucket.org/freebsd/freebsd-head/
Shell | 25 lines | 19 code | 4 blank | 2 comment | 2 complexity | 0883bed6ec2452d7b2267c9288444295 MD5 | raw file
 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