2
# $XFree86: xc/programs/xterm/vttests/doublechars.sh,v 1.4 2002/09/30 00:39:08 dickey Exp $
4
# -- Thomas Dickey (1999/7/7)
5
# Illustrate the use of double-size characters by drawing successive lines in
6
# the commonly used video attributes.
8
# Use the -w option to force the output to wrap. It will look ugly, because
9
# the double-high lines will be split.
16
eval '$CMD $OPT >$TMP || echo fail >$TMP' 2>/dev/null
17
( test ! -f $TMP || test -s $TMP ) &&
18
for verb in printf print ; do
20
eval '$verb "\c" >$TMP || echo fail >$TMP' 2>/dev/null
21
if test -f $TMP ; then
22
if test ! -s $TMP ; then
34
if test $# != 0 ; then
45
if test $SAVE = yes ; then
48
stty raw -echo min 0 time 5
50
$CMD $OPT "${ESC}[18t${SUF}" > /dev/tty
51
IFS=';' read junk high wide
55
wide=`echo $wide|sed -e 's/t.*//'`
56
original=${ESC}[8\;${high}\;${wide}t${SUF}
57
trap '$CMD $OPT "$original" >/dev/tty; exit' 0 1 2 5 15
60
if test $WRAP = yes ; then
61
# turn on wrapping and force the screen to 80 columns
62
$CMD $OPT "${ESC}[?7h" >/dev/tty
63
$CMD $OPT "${ESC}[?40l" >/dev/tty
65
# force the screen to 132 columns
66
$CMD $OPT "${ESC}[?40h" >/dev/tty
67
$CMD $OPT "${ESC}[?3h" >/dev/tty
72
$CMD $OPT "${ESC}[0;${SGR}m" >/dev/tty
75
$CMD $OPT "${ESC}#${DBL}" >/dev/tty
76
echo "The quick brown fox jumps over the lazy dog" >/dev/tty
80
$CMD $OPT "${ESC}[0m" >/dev/tty