60 LPRINT "WORK"
70 LPRINT "CANCEL LINE";
80 LPRINT CHR$( 24);
90 LPRINT "DOES NOT WORK"
Here is what this program will print:
The backspace codes in line 20 move the printhead a total of
three spaces to the left so that the first part of line 30 will over-
print the word “NOT”. The delete codes in line 50 “erase” the
three letters in the word “NOT” so that it doesn’t even print.
In line 80, CHR$(24) deletes the words in line 70. The
semicolon at the end of line 70 prevents a line feed from causing
that line to print before the printer receives the CHR$(24) code.
The text in line 90 prints as it normally would because it is after
CHR$(24).
n Printing zeroes
Believe it or not, there are two types of zeroes. There is of
course the type we use every day - 0 - and this is what your
printer will print if you don’t do anything.
The other type is used almost exclusively in computers and
engineering. It is called the “slash zero” and is written like this -
0. The line through the number is supposed to prevent you from
misreading it as the letter “0”. Back before high-quality
printers were available, this was a good idea but you really have
no need for it (although you may want to use the slash zero for
special effect).
W Immediate-print
This printer can print at fine rate of 120 characters per se-
cond. But it will also print more slowly at the speed of your typ-
ing. In immediate-print mode, the printhead prints one character
at a time, as you send it. This printer also moves the paper up so
that you can see the current line and then down to continue
printing.