‘V indicatesthat the followingcharacteris a controlcode. *V[ enters the <ESC>code.<ESC>has charactercode27, and“[” is the 27thcharacterin ASCII sequencefrom A. Similarly,‘VA enters the controlcode <1>. See your DOS manualif you need t%rtherinformationaboutEDLIN.
You can now set up the printerby sendingit the fileNLQELITE.DAT.To avoidunnecessaryloggingof
A>COPY NLQELITE . DAT PRN
A>PRINT RIZADME.DOC,
For greaterconvenienceyoucanmakea batchfilethatwillsetup theprinter and print any specifiedfile with a singlecommand.To createsuch a batch file withthenameNLQPRINT.BAT,typein thefirst fourlinesshownnext.
AZ me~s t. pIWSthe CTRLandZ keyssimultaneouslyTO. use this filetO print README.DOC,type the fifth line.
A)COPY CON NLQPRINT . BAT COPY NLQELITE . DAT PRN PRINT %1
“z
A>NLQELITE README. DOC
The first aboveline is a copy commandfrom the CONsolescreen to a file
namedNLQPRINT.BATThenexttwolinesarethecontentsofthisfile..The %1 is a dummyparameter:whateverfile name you type after NLQPRINT willbe substitutedfor %1 and printed.
PROGRAMMING WITH BASIC
As an exampleof programmingthe printeron MicrosoftBASIC,we have listed the program for the
1000 ‘ Set contro 1 codes
1010 | E$=CHR$ ( 27) | ‘ Escape code |
1020 | D$=E$+“x’’+CHR$(O) | 4Draft quality |
1030 | N$=E$+ “x’’+CHR(1)$ | ‘Near letter quality |
1040 C$=E$+“kO“+N$ | ‘Courier characters | |
1050 S$=E$+“kl“+N$ | ‘Sanserif characters | |
1060 | Ol$=E$+”k2“+N$ | ‘Orator with sma11 caplta1s |
1070 | 02$=E$+“k3’’+N$ | Orator with 1ower case |
1080 | H$=CHR$(9) | rHorizontal tab |
82