All Character Set - Oki MICROLINE 591Elite User Manual

Ibm-/epson
Table of Contents

Advertisement

All Character Set

Select All Char. Set
n1, n2 = 0 to 255
Print one char. in All Char.
Set
IBM
The All Characters Set, shown in Appendix B, contains only printable characters,
with the exception of decimal codes 0 and 255. Besides giving you a broad range of
graphics characters and other special symbols, the All Characters Set is a handy
debugging tool for programmers, since you can print out and examine files that contain
control codes and escape sequences.
If you just want to print a single character from this set, use the ESC ^ command. The
next character printed will be taken from the All Characters Set.
Printing continuously from the All Characters Set is a little more complicated, because
you have to specify how many characters you intend to print. If you are printing fewer
than 256 characters, substitute the number of characters for the variable n1, and replace
n2 with 0. To print 256 or more characters, divide the number of characters you want
to print by 256. Replace n2 with the whole number result, and assign the remainder to
n1.
When you send this command, the next n1 +(n2 x 256) characters will come from the
All Characters Set.
Examples
To print the next 80 characters from the All Characters Set, use this BASIC statement:
LPRINT CHR$(27);"\";CHR$(80);CHR$(0)
To print the next 600 characters from the All Characters Set, use this BASIC statement:
LPRINT CHR$(27);"\";CHR$(88);CHR$(2)
(600 divided by 256 is 2, with a remainder of 88.)
Decimal
Hex
27 92 n1 n2
1B 5C n1 n2 ESC \ n1 n2
27 94
1B 5E
ASCII
Comp
P A
ESC ^
P A
3 – 21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Microline 590

Table of Contents