Laser Printer Applications Manual
NEW
10 ‘ EXAMPLE
20 WIDTH “LPT1:’’,255
30 LPRINT CHR$(7)
40 LPRINT CHR$(27);CHR$(112)
50 END
RUN
you make the printer first sound its bell—most people call ita beeper— and
then print the self test.
Generally, when you send a control or Escape code it stays active until you
deactivate it.
Mostprogramming languages,and someversionsof BASIC, letyoutreat the
printer as a file to which you can send data. When you write a program with
one of these languages you “open” the printer file, print into it, and then
“close” the file when you’re done. This programming jargon sounds funny
if you’re not used to it — but it works.
A few programming languages let you send commands to the printer a third
way. ApplesoftBASIC isone. With it,youcan switchbetween printer output
and screen output.
1.2.8 Printer emulations
Your StarLaserPrinter4111responds tothesameescape sequence commands
that the Hewlett-Packard LaserJet III printer uses.
Macros are singlecontrol codes you can define yourself, which do the work
ofa whole longseriesof printercommands. If you are a programmer you will
be happy to hear the Star LaserPrinter 4111supports up to 99 macros at once.
11










