Run the program. The text window at the bottom of the screen changes color along with the dark blue text because register 2 governs the text window as well as the text display. Getting Rid of the Text Window Sometimes you may not want the text window to appear in you r pro- grams. To eliminate the text window, simply add 16 to the graphics mode number. Change line 20 to GRAPH IC S 17 and delete line 70. The PRINT command will always print in graphics mode O. If you are in modes 1 or 2, if you don't have a text window, and if you use the PRINT command and the PRINT #6; command, the computer gets confused and prints everything in mode O. Add this line:
79 PRINT " WINDOW TEST" Run the program to see what happens. If you use PRINT and PRINT #6; you must use a text w in dow to have mode 1 show up on the screen. Delete lines 100, 110, 120, and 130. Run the program. WINDOW TEST and then READ Y appear at the top of the screen. List the program. Line 20 specifies mode 17 (mode 1 without the text window), but where is it? Replace line 70 with this lin e: 79 GO TO 79 When you run the program, the mode 1 screen comes back. When you use mode 1 or 2 without a text window, you must use a GOTO loop to keep the display on the screen or it will flash by too fast to be seen. Pressing the I Break I key returns you to mode O.
To see an example of mode 2, li st the Co lorful Text program and change line 20 to 29 GRAPHICS 1.8 Graphics 18 stands for mode 2 plus 16 (no text window). Run the program. Now you have LAR GE colorful text. To return the screen to its original colors, press the I Reset I button or type SETCOLOR 2,9,4. You will not lose your program when you press I Reset I in ATARI BASIC. Ho wever, that feature may not apply to other languages or programs. 72