Oki ML591 MICROLINE Reference Manual - Page 61

Double Width & Height Printing Commands, Table 18: IBM ESC [ @ Command

Page 61 highlights

Double Width & Height Printing Commands The double width & height commands allow you to select double width, double height, or double width and double height printing in the IBM emulation. Double Width & Height Printing Command, 9-Pin Printers (IBM) ߜ ML320 E/I, ML321 E/I ߜ ML320 Turbo, ML321 Turbo ߜ ML520, ML521 Function Double Width and/or Height Printing ASCII ESC [ @ Ln Hn NUL NUL n1 n2 Decimal 27 91 64 Ln Hn 0 0 n1 n2 Hexadecimal 1B 5B 40 Ln Hn 00 00 n1 n2 This command lets you specify character width and line spacing in addition to character height. Parameters n1 and n2 Parameters n1 and n2 are used to set the width, line spacing and height used. Variable n1 sets the character height and line spacing; variable n2 sets the character width. Parameters Ln Hn These parameters specify the number of bytes of the modes, calculated as Ln + (Hn x 256) Generally, Ln is 4 and Hn is 0. Table 18: IBM ESC [ @ Command - Character Height/Line Spacing for n1 Values Decimal Value of n1 0 1 2 16 17 18 32 33 34 Character Height Unchanged Standard Double Unchanged Standard Double Unchanged Standard Double Line Spacing Unchanged Unchanged Unchanged Single Single Single Double Double Double Table 19: IBM ESC [ @ Command - Character Width for n2 Values Decimal Value of n2 0 1 2 Character Width Unchanged Standard Double For example, to use double height characters with double the normal line spacing, without changing the width of the characters use this BASIC statement: LPRINT CHR$(27);"[@ ";CHR$(4);CHR$(0);CHR$(0);CHR$(0);CHR$(34);CHR$(0) 22 Chapter 3: Character Size & Spacing Commands

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

Chapter 3: Character Size & Spacing Commands
22
Double Width & Height Printing Commands
The double width & height commands allow you to select double width, double height, or
double width and double height printing in the IBM emulation.
Double Width & Height Printing Command, 9-Pin Printers (IBM)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
Function
ASCII
Decimal
Hexadecimal
Double Width and/or
Height Printing
ESC [ @ L
n
H
n
NUL
NUL n
1
n
2
27 91 64 L
n
H
n
0
0 n
1
n
2
1B 5B 40 L
n
H
n
00
00 n
1
n
2
This command lets you specify character width and line spacing in addition to character
height.
Parameters n
1
and n
2
Parameters n
1
and n
2
are used to set the width, line spacing and height used. Variable n
1
sets
the character height and line spacing; variable n
2
sets the character width.
Parameters L
n
H
n
These parameters specify the number of bytes of the modes, calculated as
L
n
+ (H
n
x 256)
Generally, L
n
is 4 and H
n
is 0.
Table 18: IBM ESC [ @ Command —
Character Height/Line Spacing for n
1
Values
Decimal Value of n
1
Character Height
Line Spacing
0
Unchanged
Unchanged
1
Standard
Unchanged
2
Double
Unchanged
16
Unchanged
Single
17
Standard
Single
18
Double
Single
32
Unchanged
Double
33
Standard
Double
34
Double
Double
Table 19: IBM ESC [ @ Command — Character Width for n
2
Values
Decimal Value of n
2
Character Width
0
Unchanged
1
Standard
2
Double
For example, to use double height characters with double the normal line spacing, without
changing the width of the characters use this BASIC statement:
LPRINT CHR$(27);"[@ ";CHR$(4);CHR$(0);CHR$(0);CHR$(0);CHR$(34);CHR$(0)