home *** CD-ROM | disk | FTP | other *** search
- 10 rem copyright 1993 compute publications intl ltd - all rights reserved
- 20 rem typewriter simulator
- 30 poke53281,0:poke53280,0:open1,4:print"[147]"spc(8)"[213][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][201]"
- 40 print" [194][129]typewriter simulator[194]":printspc(8)"[202][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][203]"
- 50 print"[159] menu of operations:"
- 60 print" [158]1[146] set up form in printer"
- 70 print" [158]2[146] set up l-r pointer"
- 80 print" [158]3[146] input typing routine"
- 90 print" [158]4[146] extra line feeds"
- 100 print" [158]5[146] quit program"
- 110 gosub440:onval(a$)goto120,190,250,410,430:goto110
- 120 print"to align the form, enter the horizontal"
- 130 print"column where a repeated [129]x can be printed"
- 140 print"use space to repeat the [129]x and return to exit";
- 150 print". enter column number:";:inputn
- 160 print#1,spc(n)"x":print#1,chr$(27);chr$(106);chr$(0):print#1,chr$(27);"@";
- 170 gosub440:ifa$=chr$(32)then160
- 180 ifa$=chr$(13)then50
- 190 print"enter an [158]l if you are planning to"
- 200 print"orient your entries to the left":print
- 210 print"enter an [158]r if you are planning to"
- 220 print"orient ypur entries to the right":print"l/r? ";:gosub440:m$=a$
- 230 printm$:ifm$<>"l"andm$<>"r"then190
- 240 goto50
- 250 printchr$(14)
- 260 ifm$<>"l"andm$<>"r"thenprint"[129] l or r locator ?":printchr$(142):goto190
- 270 print"[147] [197]nter an up arrow ([158]^) to quit"
- 280 lo$="[204][197][198][212]":ifm$="r"thenlo$="[210][201][199][200][212]"
- 290 a$="":print" [197]nter the print position for your ";lo$;:input" margin";a$
- 300 ifa$=chr$(94)thenprint"[147]"chr$(142):goto50
- 310 ifval(a$)>80ora$=""then250
- 320 p=val(a$):a$="":print" [197]nter phrase to be printed":inputa$
- 330 ifa$=chr$(94)thenprint"[147]"chr$(142):goto50
- 340 ifm$="l"thenn=p:ifn+len(a$)>80thenprint"[206][207][160][210][207][207][205][160][212][207][160][208][210][201][206][212]":goto290
- 350 ifm$="r"thenn=p-len(a$)+1:ifn<0thenprint"[206][207][160][210][207][207][205][160][212][207][160][208][210][201][206][212]":goto290
- 360 print#1,spc(n);a$:print#1,chr$(27);chr$(106);chr$(0):print#1,chr$(27);"@";
- 370 print" [204]ine feed? [217]/[206] ";:gosub440:printa$
- 380 ifa$=chr$(94)thenprint"[147]"chr$(142):goto50
- 390 ifa$="y"thenprint#1,"":goto250
- 400 goto250
- 410 print" enter number of line feeds";:inputa$:ifval(a$)=0then50
- 420 fori=1toval(a$):print#1:next:goto50
- 430 close1:end
- 440 a$="":geta$:ifa$=""then440
- 450 return
-