•
I
Gemini User's Manual
• •
ing notes, you should be able to run all the sample programs
•
presented in this manual if you use Applesoft BASIC.
•
Applesoft BASIC uses the PRINT command to send informa-
tion to both the screen and the printer.
•
The PR # 1 command sends the information only to the printer
(when the printer interface is in slot number 1), and the PR # 0 com-
mand sends the information only to the screen.
•
Therefore, you should use:
PRINT
CHR$(4)
"PR#1"
•
PRINT
•
instead of the LPRINT command. In addition, use:
•
PRINT
CHR$(4)
"PR#O"
PRINT
•
instead of the PRINT command.
The Apple video display is 40 columns wide. If you want the
•
print mode to print more than 40 columns, you need to send an
additional command code:
•
PRINT
CHR$(4)
"PR#1"
PRINT
CHR$(9)
"255N"
•
PRINT
This message allows Gemini to print a line of any length. This is
•
particularly important when sending bit-image graphics to Gemini.
The CHR$(9) (or function code HT, which moves the print
•
head to the next tab position) and CHR$(13) (or function code CR
for a carriage return) codes cause problems when used in both the
•
Gemini escape-function code sequences and in the graphics
mode. Avoid using these codes if possible.
•
The printer interface card does not allow us to send ASCII
codes greater than 127. If you try to send these codes, the inter-
•
face sets the eighth bit to zero. The result, for example, is that
PRINT CHR$(239) would be received by the printer as PRINT
CHR$(111); that is, 239 -128
=
111. Gemini provides the ESC"
>"
•
function code to allow 7-bit interface users to overcome this prob-
lem. See Chapter 9 for a discussion of this problem.
•
Apple users (and other 7-bit interface users) should also be
aware of the difference between 7-bit and 8-bit interface graphics.
•
See Chapter 6 for a discussion on this topic.
152
•