NEW
10 EXAMPLE
20 WIDTH “LPT1:’’,255
30 LPRINT CHR$(7)
40 LPRINT CHR$(27);CHR$(112)
50 END
RUN
youmake the printerfirst sound itsbell—most people callit abeeper— and
then printthe self test.
Generally, when you sendacontrol or Escape code it stays active until you
deactivate it.
Mostprogramming languages,and someversions ofBASIC, letyou treatthe
printeras afile to which you can send data. When you write aprogram with
one of these languages you “open” the printer file, print into it, and then
“close” the file when you’redone. This programming jargon sounds funny
ifyou’re not used to it but it works.
Afewprogramming languages let you send commands to the printer athird
way.Applesoft BASICis one.With it, youcan switchbetween printeroutput
and screen output.
1.2.8 Printer emulations
YourStar LaserPrinter4111respondsto thesameescape sequence commands
that the Hewlett-Packard LaserJet III printer uses.
Macrosare single controlcodes you can define yourself, which do the work
ofawhole long seriesofprinter commands.If youare aprogrammeryou will
behappy to hear the Star LaserPrinter 4111supportsup to 99 macros at once.
11