10 ’ Demo of adjusting spaces

20LPRINT CHH$ (27) ; “xl”;

30FOR I=10 TO 1 STEP -2

40 LPRINT CHR$(27);” “;CHR$‘(i);

50LPRINT “This line is added” ; I ; “spaces. ”

60NEXT I

70 LPRINT CHR$(27) ;‘I “;CHR$(O) ;

80LPRINT “This line is Normal space. ”

90 END

This

line

 

 

is

added

 

10

spaces.

This

line

 

is ndded

8

spaces.

This

line

 

is

added

6

spaces.

This

line

 

is

added

4 spaces.

 

This

line

 

is

added

2

spaces.

 

This

line

is Normal

space.

 

 

This command can be used to produce micro-justification,

which is a method of justifying lines by increasing the space between each character.

H Uni-directional printing

Uni-directional printing means printing in one direction only. Your printer normally prints when the printhead is moving in both directions. But once in a while you may have an application such as making tables where you are more concerned with how the vertical lines align than with how fast it prints. The printer lets you make this choice. The table below

shows the commands for controlling how the printer prints.

-

 

 

 

Table 6-2

 

 

 

 

 

Printing direction

commands

 

 

 

 

Function

 

Control code

Print

in

one

direction

<ESC>

“U”

1

Print

in

both

directions

< ESC >

“U”

0

One

time

print in one direction

<ESC>

“<”

 

Try this program to see the difference that printing in one

direction makes.

Page 92
Image 92
Star Micronics ND-10/15 user manual This Line Added Spaces