
Computer interfacing
print a short section of text in double-strike mode, we
send the following code sequence to the printer:
27 71 section of text to be printed 27 72
The code 27 is ASCII for ESC; 71 and 72 are the ASCII
codes for
G
and H, respectively. Seen in this light, printer
control codes have no real mysteries after all! All that is
necessary to do, is to insert the required printer control
codes,
at those points in the supply of data to the printer
where certain actions are to be taken. Using a word proc-
essor makes this easy; as all such codes are already built
in, it is only necessary to make the appropriate key-
strokes. For example ...