73

When you run the program now it produces this:

(‘ji;:t’

‘-1z,:(1.;.j

i /-/p:i_j,:,

i E.1Ljj1.j

The words are now closer together, but still evenly spaced. To reset the default tabs, use the following program:

LPRINT CHR$(27);"eO";CHR$O

This command resets the horizontal tabs to every eight co- lumns.

Table 5-7

Horizontal

Function

Advance to next tab position Set tabs at nl, n2, etc.

Set tabs every n columns Set tabs every 8 columns

tab commands

Control code

CHR$(9)

<ESC > “D” CHR$(nl) CHR$(n2) ..... CHR$(O)

<ESC > “e” 0 CHR$(n)

<ESC > “R”

(IBM-P mode only)

nOne-time horizontal tabs

Suppose you need to move to a position across the page, but you only need to do it once. It doesn’t make much sense to set up a tab to use only one time. There is an easier way.

The solution is called a one-time tub. Table 5-8 shows the three commands.

Table 5-8

One-time horizontal tabs

One-time horizontal tab of n s aces < ESC > “f’ 0 CHR$ n

~~

The first command in Table 5-8 moves the print head n columns to the right. It has the same effect as sending n spaces to the printer.

Page 79
Image 79
Star Micronics NR-15, NR-10 user manual Lprint CHR$27eOCHR$O