Star Micronics 4111 Printer User 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 itsbell—most people call it a beeper— and
then print the self test.
Generally, when you send a control or Escape code it staysactive until you
deactivate it.
Mostprogramming languages,andsomeversions of 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 switch between printer output
and screen output.
1.2.8 Printer emulations
Your StarLaserPrinter4111respondstothesameescape sequencecommands
that the Hewlett-Packard LaserJet III printer uses.
Macros are singlecontrol codes you can define yourself, which do the work
ofawhole longseriesof printercommands.Ifyou are a programmer you will
be happy to hear the Star LaserPrinter 4111supports up to 99 macros at once.
11