EasyManua.ls Logo

Star Micronics 8 Series - Combining Escape sequences

Star Micronics 8 Series
230 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
I
TwoimportantdetailsmakeLaserJetIIcommandsdifferentfromtheother
printeremulations.First,all Escapesequencesend witha capitalletter.If
youdon’tmakethelastcharacteruppercase,yourprinterwon’tknowwhen
theEscapesequenceendsandwilltreatfollowingcharactersas partof the
samecommand.
Second,inLaserJetIIcommandseachnumbcrorcharacteryouputafterthe
cESC>codeisanactualASCIIsymbol.Withtheothcremulations,usually
any number you put after an <ESC>code identifiesa characterin that
positionin the ASCIItable.
Forexample,theLaserJet11commandthatsetstherightmarginto column
65 is:
<ESC>&a65 M
whichyouwouldcodein BASICas:
10 LPRINTCHR$(
27 ) ; “&a65M”
That commandsends your printer the symbols“6” and “5,” which its
LaserJet11programinterpretsasthecolumnnumber.
HowcvcrifyouwereusingEpsonEX-800emulation,thecommandthatsets
therightmarginlookslikethis:
<ESC>Q 65
whichin BASICyouwouldwritethisway:
iO LPRINTCHR$(27) ; “Q”;CHR$(65)
ThatcommandsendsthepnntcrwhatevercharacterhappenstobeinASCII
position65.Yourprinter’sEpsonProgram,though,interpretsit onlyas a
decimalnumbermeaningcolumn65.
Combining Escape sequences
Laterinthischapterwedescribeonewayto selectafont,byjust specifying
whatfontattributesyouwant,suchasboldorproportionalspacing.If you
selectafontby specifyingeveryoneofitsattributes,youcanbecertainthat
you’reselectingsuccessfully.Butitcouldmeanafairbitofrepetitivetyping
eachtimeyouchoosea font.This appliesto othercommandstoo,notjust
fontselection.
52

Related product manuals