Whenyouwantto setallyourlaserprinter’sparametersbacktotheirinitial
defaultvalues(somepeoplecall this “initializing”theprinter),send this
command:
<ESC>E
Theprinterwillfinishprintinganypagesleftin itsmemorybeforeresetting
the parametem.Resetting clears unneeded temporary fonts from your
printer’smemory.Anypermanentfontsor macrosyouhavedownloaded,
however,willstillbethereafteryousendaresetcommand.Permanentand
temporaryfonts are described at the end of this chapter’s“Controlling
Fonts”section.
Example: Printer controls
Let’sseewhathappenswhenweputthesecommandstogether.Sayyouhave
just turnedon yourlaserprinterand selectedLaserJet11emulationon the
frontpanel.Whathappenswhenyousendthefollowingcommandsto your
printer?
<ESC>
Z
<ESC>E
<ESC>&t’2h2X
As a BASICprogramthesewouldlooklikethis:
<NEW
10
WIDTH “LPT1 : “ ,255
20 LPRINT CHR$( 27 ) ; “
Z “
30 LPRINTCHR$(27) ; “E”
40 LPRINTCHR$(27) ;“&12h2X”
RUN
First, if it is workingproperlythe printerprints a test print with all the
charactersin itsdefaultfontforthis emulation(Courier).
Next theprintersetsallitsparametervalues—includingfeedselectionand
numberof copies—to theirinitialsettings.
Thelastcommanddoestwothings:ittellstheprintertoacceptpaperyouwill
feedin yourself,and to printeachpagetwo times.Thisis handywhenyou
wanttwo copiesof a letteron preprintedletterhead.
55