Table
Horizontal tab commands
Function | Mode | Control code | |
Advance to next tab position | STAR CHR$(9) |
| |
| IBM | CHRS(9) |
|
Set tabs at nl, n2, etc. | STAR | < ESC > | “D” CHR$(nl) |
|
| CHR$(n2). ..CHRS(O) | |
| IBM | < ESC > | “D” CHR$(nl) |
|
| CHR!$(n2)...CHR$(O) | |
STAR | < ESC> | “b” CHRS(n) | |
| IBM | <ESC > “b” CHR$(n) |
Note: If your computer does not support lowercase characters, use CHR$(98) for “b.”
SETTING LEFT AND RIGHT MARGINS
| Table |
| |
Left and right margin commands | |||
Function | Mode | Control code | |
Set left margin at column n | STAR | < ESC > | “M”CHR$(n) |
| IBM | < ESC > | “1” CHR$(n) |
Set right margin at column n | STAR | < ESC > | “Q” CHR$(n) |
| IBM | < ESC > “Q” CHR$(n) |
Note: If your computer does not support lowercase characters, use CHR$( 108) for “1”.
Try setting
18'Demo margins.
20GOSUB 70
30LPRINT CHR$(27) "M" CHR$(lQ)) ; ‘Left margin = 10.
40 LPRINT CHR$(27) "Q" CHR$(70) ; 'Right margin = 70.
50GOSLJB 70
60END
70 FOR I = 1 TO 80
80LPRINT "X" ;
90NEXT I 100 LPRINT
63