Always send a form feed after setting the top margin, or it will
not work on the first page printed. That’s because the top margin
only takes effect after a form feed.
Line 14 sets the top margin, line 12 sets the bottom margin,
and line 55 clears both margins when we are done.
SUMMARY
L
L-..
&..
L...
Control code,
Function
CHR$( 10)
Line feed
CHRS(13)
Carriage return
< ESC > “A” CHR$(n)
Set line spacing to n/72 inch
(for STAR mode)
< ESC > “3” CHR$(n)
Set line spacing to n/144 inch
(for STAR mode)
< ESC > “0”
Set line spacing to l/S inch
< ESC > “1”
Set line spacing to 7/72 inch
< ESC > “2”
Set line spacing to l/6 inch
(for STAR mode)
< ESC > “J” CHR$(n)
One-time line feed of
n/144 inch (for STAR mode)
< ESC > “a” CHR$(n)
Advance the paper n lines
< ESC > “A” CHR$(n)
Define line spacing of n/72 inch
(for IBM mode)
< ESC > “2”
Use <ESCp
“A” definition
(for IBM mode)
< ESC > “3” CHR$(n)
Set line spacing to n/21 6 inch
(for IBM mode)
< ESC > “J”CHR$(n)
One-time line feed of n/216
inch (for IBM mode)
CHR$( 12)
Form feed
< ESC > “C” CHR$(n)
Set page length to n lines
< ESC > “C” CHR$(O) CHR$(n)
Set page length to n inches
< ESC > “R” CHR$(n)
Set top margin; start printing
on line n (for STAR mode)
< ESC > “r” CHR$(n)
Set top margin; start printing
on line n (for IBM mode)
< ESC > “N” CHR$(n)
Set bottom margin; leave n lines
blank
< ESC > “0”
Clear top and bottom margins
59