Star Micronics NB24-10/15 user manual Selects internal characters

Models: NB24-10/15

1 133
Download 133 pages 41.98 Kb
Page 61
Image 61
Selects internal characters

52

characters before line 70 switches printer back to internal LQ characters with an (ESC) “k” CHR$(O) command.

You can control the font styles with the extra functions with the control panel.

Table 4-3

Font selection commands

Function

Control code

Selects font slot 1

(ESC) “k” CHR$(l)

Selects font slot 2 (15~inchtype only) (ESC) “k” CHR$(B)

Selects internal characters

(ESC) “k” CHR$(O)

nUnderlining and overlining

Not only can your printer print all styles of printing in both roman and italic, but it can underline and overline them too. The control codes are shown in Table 4-4.

 

 

Table 4-4

 

 

 

Underline

and overline

commands

Function

 

Control code

Underline

ON

(ESC) “-” 1

Underline

OFF

(ESC) “-” 0

Overline

ON

(ESC)

“A”

1

Overline

OFF

(ESC)

“-”

0

It’s that simple. Let’s try it with this program:

10 ’ Demo of underlining and over lining

20 LPRINT "Demo of ";

30 LPRINT CHR$(27);"-1";

40 LPRINT "UNDERLINED";

50 LPRINT CHR$(27);"-0";

60 LPRINT w and ";

70 LPRINT CHR$(27);" 1";

80 LPRINT "OVERLINED";

90 LPRINT CHR$(27);"-0";

100 LPRINT w printing."

It should come out like this:

Demo of UNDERLINED and m

printing.

Page 61
Image 61
Star Micronics NB24-10/15 user manual Selects internal characters