Star Micronics Delta user manual LPRINTCHR$27CHR$36CHR$@

Page 96

84DeltaUser'sManual

10 LPRINTCHR$(27)CHR$(36)CHR$(l)

20FOR I=33 TO 126 : LPRINTCHR$(I);: NEXT I

30FOR 1=16gTO 254 : LPRINTCHR$(I);: NEXT I

40LPRINT

50LPRINTCHR$(27)CHR$(36)CHR$(@

Nope! Just four characters in the download set. This is incon- venient for a couple of reasons. First, every time you wanted to use a download character you would have to switch back and forth between character sets. Knowing that you wouldn’t want to do that, Delta won’t even allow it. Standard characters and download characters cannot be mixed in a line. If you want to use download characters, the command should appear at the begin- ning of the line. All subsequent characters (even on following lines) are printed with the download set until you return to the standard characters with an (ESC) “$” CHR$(O). (Note that the (ESC) “$” CHR$(l) command can be in the middle of a line, and that entire line will be printed with the download characters. Like- wise, if you select the standard character set anywhere in a line, the entire line will be printed with the standard characters. Con- flicting commands within a line can cause unpredictable results.)

So does that mean that in order to print something meaning- ful with our card suits we have to define an entire alphabet? Fear not. The engineers at Star have made it an easy task to use mostly standard characters with just a few special characters thrown in. This command copies all the characters from the standard char- acter ROM into download RAM:

(ESC) "*" CHR$(@)

Since it will copy all characters into the download area, it will wipe out any characters that are already there. So it’s important to send this command to the printer before you send any download characters you want to define. With that in mind, add this line to the program we used to send the characters to Delta:

5 LPRINTCHR$(27)Ir*"CHR$(g)

Now try the download printout test program again. Your results should look like Figure 7-12. You probably noticed that our

-

-.

-

-

-

.-

-

-

-

-.

-

-

-

_

-

Image 96
Contents Delta User’s Manual @Copyright 1983 Star Micronics, Inc Special Message to the New Owner Delta User’s Manual Table of Contents Special Features Delta Printer Formatting Your OutputCreating Your Own Characters Getting It All Together Maintenance Appendix D TRS-60 Computers Appendix E Osborne, Kaypro and CP/M ComputersAppendix F Atari 400/800 Computers Appendix DIP Switch Settings Appendix Character Style ChartsAppendix Commodore VIC-20 Computers AppendixConsumer Response 309 DIP Switch Quick Reference Warranty Inside Back Cover Command Quick ReferenceDelta User’s Manual Serial busy protocols XONlXOFF Protocol ACK protocol IndexTables Xii Delta User’s Manual Closer Look Paper separator and paper guide used with roll paper Roll paper holder and holder shaft used only with rollPage Parallel interface connector the place where you hook Paper Selection and LoadingLoading single sheets Delta User’s Manual Loading roll paper Delta User’s Manual Closer Look Loading sprocket-feed paperOpen the tractor covers to expose the sprocket teeth Bottom feeding Delta-15 Figure I-10.Delta ready to run with sprocket-feed paperDelta User’s Manual Ribbon Installation Self-Test Closer Look Delta User’s Manual Getting Started With Delta Using Commercial Sojtware Getting Started With Delta First, some terminologyAscii Using Delta with SuperCalc Using Delta with word processorsPage Using this book without learning Basic Getting Started With DeltaList OPEN4,4 CMD4 List PRINT#4 CLOSE4Establishing communications NEW Lprint Testing RUN NEWNEW LPRINTCHR$7 RUN CHR$ functionNEW LPRINTCHR$27CHR$52 2$3LPRINT Testing RUN Escape CodeSome problem codes ESC$=CHR$27 l@ LPRINTESC$Delta User’s Manual Printing Text With Delta ChapterPrint pitch Commands @ Lprint this is Elite Pitch PrintingLprint Condensedis the Narrowestpitch Lprint NOW WE are Back to Pica Pitch PrintingLPRINTCHR$27W CHR$@NOW Were Back to Normal Expanded printI s H153Print Commands LPRINTCHR$14EXPANDEDELITE PitchLprint NOW WE are Back to Unexpandedpica Printing Making Delta print darkerPrint EmDhasis a Commands Lprint this is DOUBLE-STRIKEPRINTINGItalic Commands Italic printingUnderJining Superscripts and subscriptsSuperscript Subscript commands NEW Lprint Thisline UsesMixing modes Build Instructionset LPRINTRESET.ALL$ Lprintelites Elite LPRINTPICA$ Pica LPRINTRESET.ALL$ ReturnREGULAR.HEADING$= STRING$27,*+ Regular ReturnItalics = False LPRINTROMAN$ Repeatwith ItalicsIf Pica = False then LPRINTFOUR.DOT$ GOTO3590 If ENLARGED= True then LprintHere is the chart it produces Control Code FunctionPage Delta User’s Manual Line Spacing and Forms Control Changing Line Spacing This is what you will get Line spacing Commands Run the program again. Now the results will look like thisNEW Lprint Linenumber Moving down the page without a carriage returnForms Controls Form feedForm length commands Changing the Page LengthTop and bottom margin commands Lprint PAY to the OrderLineSpacingandFormsControl51 Summary Control codeESC Delta User’s Manual Formatting Your Output NEW Lprint ONECHR$9TWOCHR$9THREE CHR$9 Four One-shot tab command Left and right margin commands5B END 13@ Lprint ReturnLPRINTCHR$27P CHR$l@ CHR$Z@CHR$@ One-shot vertical tab command Control Code FunctionLChapter Now hear thisBell commands Initializing DeltaSome Miscellaneous commands Putting Delta to sleepPrinting to the bottom of the sheet Unidirectional printingLprint Lprint NextPrinting Direction NEW Lprint Backspacedoes not Lprint I===WORK Lprint Deletedoes notLprint Work Backspace and deleteBlock graphics characters and special symbols Eighth Bit controls3pl Lprint I II=11CHR$ICHR$9 4pI Next I Lprint Next J International Character set commands International character setsMacro control code Macro instruction Commands Startdefinition Macro Lprint CHR$18 PicaOFF Regularprint END MacroFunction Bell Disable bell Enable bell Reset Off-lineOn-line Control codeDelta User’s Manual Creating Your Own Characters Dot Matrix Printing 000 0 eeeS&fee Defining Your Own Characters Rule I Download characters are seven dots highRule 2 Dots cannot overlap 8WRONG Add up each column of dotsCreating YourOwn Characters Download character definition command Assigning a value to your character Character designs for the four card suits Next M Figure Y-10. The attribute byte n2 for our heart characterPrinting Download Characters LPRINTCHR$27CHR$36CHR$@ DEFINTA-Z Read X LPRINTCHR$X Next JNext Lprint Return DECKCARD=X Next Card ReturnLPRINTSUIT$SUIT Download Character dejfinition commands Proportkmal Characters12@ Lprint CHR$BITS 138 Next Only Difference Is the way They Are Accessed Creating Your Own Characters Lprint DEF.DOWN.CHAR$ NUMERAL.BOT$NUM= CHR$ASCII+ 2 + CHR$ASCII+ Mixing Print Modes with Download Characters Utility Program Gosub 950RETURN Gosub 660 Return REM **** Display Menu for Edit Mode Summary