Putting Gemini to Work
default spacing. If n is greater than 12, the spacing will be larger than normal.
In line 350, we set n to equal 9, with the result that the line spacing is changed to 9172or ‘/Binch. A line feed is set to move down (or, to be more correct, “advancethe paper”) 1/8inch, then return the print head to the first print column (it’s “home” position). The printer is shifted into the compressed mode because of COMP$, the ‘I+” is printed, followed by another carriage return and line feed. The word “emphasized” is then printed, and line 350 has done its job.
Line 360 clears all the previous print function codes and restores Gemini to its initialized values. Line 370 is the bottom of the J loop.
Line 380 is one way of advancing the paper by multiple line feeds. The STRING$(5,10) function is used to return a string of length n, whose characters all have the ASCII code of the first character in A$. Because the
Line 390 is the bottom of the outer loop. Line 400 finishes up the program by sending a
Now that we have considered the causes, let’s look at the effects. In the following section, we’ll interpret Figure
WHAT WE’VE LEARNED GEMINI CAN DO
So far in this chapter, we’ve learned that Gemini can do more than the most popular word processing software can handle. To enjoy the full range of type styles and sizes, you need to create computer programs in BASIC (or other computer languages) to send functional commands to Gemini. Or, as described in the following section, you can “patch” your word processing software so it’s smart enought to manage Gemini properly.