Star Micronics 8 Series Printer User Manual


 
featurethisway,theprinterwillunderlineallsubsequentprintablecharac-
ters, includingspaces.
Sendthiscommandto turnon theunderliningmode:
<ESC>&d n D
in whichfor n youput O(zero)to get fixedunderline,
or 3 to get floatingunderline.
Andsendthiscommandto turn offtheunderlinemode:
<ESC>&d@
How toprint Escape sequences and control codes
Youuse bothEscapesequencesandcontrolcodestoprint.Sohowdo you
printEscapesequencesandcontrolcodes?
Butyouactuallycanprintcommands,andintwodifferentways.Youwould
dothiswhenyouwantto seeeverythingexactlyasit is sentto theprinter—
for example,to debugastringof textandcommandsthatdocsn’tprintthe
wayyouthinkit should.
The Transparentprint commandprints the string of data that follows it
withoutpaying attentionto any embeddedEsca~ sequencesor control
codes.TransparentprintevenprintsCarriageReturncodeswithoutzapping
theprintpositionbackto theleft margin.
TouscTransparentprint,justputthiscommandimmediatelyinfrontofyour
printdata:
<ESC>&p n X
For n youspecifythenumberof bytesof datayouwantto print .
Display Functions,like the Transparentprint command, prints Escape
sequcnccsandcontrolcodeswithoutactuallyexecutingthcm.ButDisplay
Functionspaysattentionto CarnageReturncodes,so textlooksmorelike
the way it normallyprints. DisplayFunctionsalso prints commandsas
blanks,not as symbols.
DisplayFunctionsactuallyinvolvestwoEscapesequences,onetoturniton
andanotherto turnitoff.To turnon DisplayFunctions,sendthiscommand
just beforethedata youwantdisplayed:
<ESC>Y
81