
featurethis way,the printerwillunderlineall subsequentprintablecharac- ters, includingspaces.
Send this commandto turn on the underliningmode:
<ESC>&d n D
in whichfor n you put O(zero)to get fixedunderline, or 3 to get floatingunderline.
And send this commandto turn off the underlinemode:
<ESC>&d @
How to print Escape sequences and control codes
You use bothEscapesequencesand controlcodesto print. So how do you print Escapesequencesand controlcodes?
Butyouactuallycanprintcommands,andin twodifferentways.Youwould do this whenyouwantto seeeverythingexactlyas it is sentto theprinter— for example,to debuga stringof text and commandsthat docsn’tprint the way you think it should.
The Transparentprint commandprints the string of data that follows it without paying attentionto any embeddedEsca~ sequencesor control codes.TransparentprintevenprintsCarriageReturncodeswithoutzapping the print positionback to the left margin.
To uscTransparentprint,justputthiscommandimmediatelyinfrontof your print data:
<ESC>&p n X
For n you specifythe numberof bytesof data you wantto print .
Display Functions, like the Transparentprint command, prints Escape sequcnccsand controlcodeswithoutactuallyexecutingthcm. ButDisplay Functionspays attentionto CarnageReturncodes,so text looksmore like the way it normally prints. Display Functionsalso prints commandsas blanks,not as symbols.
DisplayFunctionsactuallyinvolvestwoEscapesequences,oneto turnit on andanotherto turn it off.To turnon DisplayFunctions,sendthiscommand just before the data you wantdisplayed:
<ESC>Y
81