.

 

75

Table

7-1

Some miscellaneous commands

Function

Cotitrol code

Soundbell

CHRW)

---Masterreset

(ESC) “@”

IOffline

I CH--lR$(19)

IOn line

ICHI@x17)

Paper-outdetectoroff

(ESC) “8”

Paper-outdetectoron

(ESC) “9”

.

W8)

move mintheadbackonesnace1CHI

Deletelastcharactersent

CHR$(127)

Canceltextinprintbuffer

CHR$(24)

1Immediate-minton

I’(E.pSC)“i”1

1Immediate-mintoff

I(ESC) “i”f1

Addn dotspacesbetweencharacters1(ESC) CHR$(32)CHR$(n)

 

1(ESC>“V”CHR$(n)

Repeatcharacters

CHR$(ml)...CHR$(mx)

 

(ESC)“V”CHR$(O)

n Backspace, delete, and cancel text

Backspace (CHR$@)) “backs up” the printhead so that you can print two characters right on top of each other. Each time your printer receives a backspace it moves the printhead one character to the left, instead of to the right. You can St&e over multiple letters by sending more than one backspace code.

Delete (CHR$(127)) also “backs up” one character, but then it “erases” the previous character (it’s erased from your printer’s buffer, not from the paper).

Cancel text (CHR$(24)) deletes all the text in the print buffer; that is, in the line before the delete text command. Since your printer prints one line of text at a time, only that line will be deleted.

The following program shows how these codes works.

10 ’ Backspace, delete, and cancel line

20 LPRINT “BACKSPACE DOES NOT”;

30 LPRINT CHR$(S);CHR$(S);CHR$(8);

40 LPRINT **===WORK”

50 LPRINT “DELETE DOES NOT”;

60 LPRINT CHR$(127);CHR$(127);CHR$(l27);

70 LPRINT “WORK”

80 LPRINT “CANCEL LINE”;

Page 83
Image 83
Star Micronics NB-15 user manual Escvchr$O