Star Micronics NB-15 Printer User Manual


 
. _~, ,.
75
Table 7-1
Some miscellaneous commands
Function
Cotitrol code
Sound bell
CHRW)
Master reset (ESC) “@”
---
I Off line
I On line
Paper-out detector off
Paper-out detector on
I CH
I CHI
--lR$(19)
@x17)
(ESC) “8”
(ESC) “9”
move mint head back one snace 1 CHI
.
Delete last character sent
Cancel text in print buffer
1 Immediate-mint on
W8)
CHR$( 127)
CHR$(24)
I (E
.pSC) “i”1
1 Immediate-mint off
I (ESC) “i”f 1
Add n dot spaces between characters 1 (ESC) CHR$(32) CHR$(n)
1 (ESC > “V” CHR$(n)
Repeat characters
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”;