Star Micronics Radix User Manual page 114

Table of Contents

Advertisement

100
Radix User's Manual
Backspace and delete
Backspace (CHR$(8)) "backs up" the printhead so that you
can print two characters right on top of each other. Each time
Radix receives a backspace it moves the printhead one character
to the left, instead of to the right. You can strike 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 Radix's buffer,
not from the paper).
The following program shows how these two codes work.
18 'Demo backspace and delete codes.
20 LPRINT "Backspace does not" ;
30 LPRINT CHR$(8) CHR$(8) CRR$(8) ; 'Three backspaces.
40 LPRINT 'I=== work."
50 LPRINT "Delete does not" ;
60 LPRINT CHR$(127) U-03$(127) CHR$(127) ; 'Three
deletes.
70 LPRINT "work."
-
-
-
-
-
-
-
-
Here is what this program will print:
-
Baci::space
does
RE&
wnrk.
Del
ete
dcjes
wor I::.
-
The backspace codes in line 80 move the printhead a total of
three spaces to the left so that the first part of line
40
will overprint
the word "not". The delete codes in line
60
"erase" the three let-
-
ters in the word "not" so that it doesn't even print.
Unidirectional printing
Unidirectional printing is a big word that means printing in
one direction only. Radix normally prints when the printhead is
moving in both directions. But once in a while you may have an
application where you are more concerned about how the vertical
lines align than with how fast it prints. Radix lets you make this
choice. The table below shows the commands for controlling how
Radix prints.
-
-

Advertisement

Table of Contents
loading

Table of Contents