Orange Micro Interface The Grappler User Manual

Page 12

Advertising
background image

APPENDIX A

TM

USING GRAPPLER CONMANDS WITHIN A PROGRAM

The following table illustrates how a few Grappler commands would be

used within a program:

INTEGER BASIC DESCRIPTION

TM

PRINT “CTRL-D”;”PR#l”

10

PRINT CHR$(4);”PR#l"

Turns on Grappler
If you are not
using DOS (disk
operating SYSTEM)
thEn enter the line
as:

PR#1

2Ø PRINT “CTRL—I”: “8ØN"

20

PRINT CHR$(9);”8ØN”

Set line length to

columns and turn

off Apple video

3Ø PRINT “TESTING”

3Ø PRINT “TESTING”

Prints “Testing”
on the printer

4Ø POKE 36,5Ø:PRINT”TESTING”

4Ø PORN 36,5Ø:PRINT”TESTING”

Tabs to the 51st
column and prints
“Testing”

5Ø PRINT “CTRL-I”; “CTRL-A”

5Ø PRINT CHR$(9);CNR$(l)

Charges tha CTRL-I
command character
to CTRL—A

60 PRINT “CTRL-A” “1ШL”

6Ш PRINT CHR$(l);”lØL”

Sets left margin to
1Ø, notice use of
new command
character,CTRL-A

7Ø PRINT THE GRAPPLER”

7Ø PRINT “THE GRAPPLER"

Prints “The Grappler”.
Notice printing
starts at 1Øth column.

8Ø PRINT “CTRL—D”"PR#Ш"

8Ш PRINT CHR$(4);’PR#Ø”

Turns off Grappler.
If you are not
using DOS enter the
line as: 8Ø PR#Ø

NOTES:

Whenever you see CTRL—I enter the command, control I, as explained in

the section “Text Features”. For example, since control characters don’t
appear on the screen line 1Ø will look like this: 1Ø PRINT ““;"PR#1"

When tabbing past 4Ø columns, you must set the line length greater than

4Ø (OTRI—InK) and then use the POKE 36,n command shown above.

11

Advertising