home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1985 September
/
1985-09.d64
/
tinyterm_vic
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
62 lines
10 open2,2,3,chr$(38)+chr$(224)
20 z1=37136:z2=37138:poke36879,137:z3=0
30 pokez1,98:print"[147]"
40 print""spc(z3)"[196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196]":printspc(z3) "[144] tinyterm"
50 printspc(z3)"[196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196][196]":gosub230
60 id$(1)="name":id$(2)="id":id$(3)="pass word"
70 goto300
80 printchr$(147)+chr$(14)+"[207]n [204]ine":printchr$(187);
90 get#2,a$:ifa$=""then130
100 ifi%(asc(a$))=13thenprint"[157] "
110 printchr$(157);chr$(i%(asc(a$)));chr$(187);:ifi%(asc(a$))=34thenpoke212,0
120 goto90
130 geta$:ifa$=""then90
140 ifa$=chr$(137)thens=1:goto180
150 ifa$=chr$(138)thens=2:goto180
160 ifa$=chr$(139)thens=3:goto180
170 print#2,chr$(o%(asc(a$)));:goto90
180 forx=1tolen(id$(s))
190 t$=mid$(id$(s),x,1)
200 print#2,chr$(o%(asc(t$)));
210 next:printchr$(13):print#2,chr$(13)
220 goto90
230 dimi%(255),o%(255)
240 forz=32to64:o%(z)=z:next:o%(13)=13:o%(20)=8:o%(160)=32
250 forz=65to90:y=z+32:o%(z)=y:next:forz=91to95:o%(z)=z:next
260 forz=193to218:y=z-128:o%(z)=y:next
270 o%(133)=3:o%(134)=19:o%(135)=17:o%(136)=16
280 forz=0to255:y=o%(z):ify<>0theni%(y)=z
290 next:return
300 printchr$(147)+chr$(14)
310 p$(1)="2126987875":p$(2)="9146683664":p$(3)="2125197653"
320 forx=1to3:printx;+"-"+p$(x):next
330 print" 4 -[205]anual [197]ntry"
340 print:print" [211]election ?"
350 getb$:ifb$=""then350
360 ifb$="1"then ph$=p$(1)
370 ifb$="2"thenph$=p$(2)
380 ifb$="3"thenph$=p$(3)
390 ifb$="4"then410
400 goto430
410 print:print"[197]nter [208]hone [206]umber":inputph$
420 iflen(ph$)<7then410
430 pokez2,100
440 print:print"[196]ialing...":pokez1,32:forx=1to1000:nextx
450 forpn=1tolen(ph$)
460 nn=val(mid$(ph$,pn,1))
470 gosub540:nextpn
480 fordl=1to300:pokez2,6:pokez1,100:ifpeek(z1)=45then570
490 ifpeek(z1)<>125thenprint" [166]":goto510
500 print" [146]"
510 nextdl
520 pokez1,0
530 print:print"no connection for nr. ":print""ph$:goto600
540 printnn;:ifnn=0thennn=10
550 forx=1tonn:pokez1,0:forxx=1to45:nextxx:pokez1,32:forxx=1to24:nextxx:nextx
560 fordl=1to200:nextdl:return
570 forx=1to3:forrr=1to20:c(x)=peek(z1):next:next
580 ifc(1)+c(2)+c(3)=135then610
590 print"nr. ";ph$" busy-"
600 forx=1to300:pokez2,32:pokez1,0 :next:goto430
610 forx=1to100:poke36878,15:poke36875,245:next:poke36878,0:goto80