home *** CD-ROM | disk | FTP | other *** search
- 50000 rem ********************
- 50010 rem * library v 1.0 *
- 50020 rem * zusammengestellt *
- 50030 rem * von: *
- 50040 rem * thomas kolbe *
- 50050 rem ********************
- 50060 :
- 50100 \proc cls:print"[147]";:\end
- 50110 :
- 50150 \proc cursor x,y
- 50160 poke781,y:poke782,x:poke783,peek(783)and254:sys65520
- 50170 \end
- 50180 :
- 50200 \proc prtat x,y,a$:!cursor x,y:printa$;:\end
- 50210 :
- 50220 \proc waitkey #zq$,er$,modus:\var i:ifmodusthenprint" [146][157]";
- 50230 getzq$:ifzq$=""then50230
- 50235 if er$=""then 50245
- 50240 !position zq$,er$,i:ifi=0 then 50230
- 50245 ifmodusthenprintzq$;
- 50250 \end
- 50260 :
- 50300 \proc position a$,b$,#zq
- 50310 forzq=1to(len(b$)-len(a$)+1)
- 50320 ifa$<>mid$(b$,zq,len(a$))then:nextzq:zq=0
- 50330 \end
- 50340 :
- 50350 \proc clreol:\var i
- 50360 i=40-peek(211)
- 50370 printleft$(" ",i);:\end
- 50380 :
- 50400 \proc linie a:for a=ato1step-1:print"[164]";:nexta:\end
- 50410 :
- 50450 \proc color ra,hi:poke53280,ra:poke53281,hi:\end
- 50460 :
- 50500 \proc center a$
- 50510 !prtat int((40-len(a$))/2),peek(214),a$:\end
- 50520 :
- 50550 \proc fetch #zy$,l:\var i,t$:zy$=""
- 50560 !linie l:fori=1tol:print"[157]";:nexti
- 50570 print" [146][157]";
- 50575 !waitkey t$,"",0
- 50580 ift$>=" "andt$<="_"andl>len(zy$)thenprintt$;:zy$=zy$+t$:goto50570
- 50590 ift$=chr$(20)andlen(zy$)>0thenzy$=left$(zy$,len(zy$)-1):print"[157] [164][157][157]";
- 50600 ift$=chr$(20)then50570
- 50610 ift$<>chr$(13)then50575
- 50620 print"[164]":\end
- 50630 :
- 50650 \proc lprint sek,a$:open 1,4,sek:print#1,a$:close1:\end
- 50660 :
- 50670 \proc status #qn,#qe$,#qt,#qs:close15:open15,8,15
- 50680 input#15,qn,qe$,qt,qs:close15:\end
- 50690 :
- 50700 \proc beep h,l:\var i:poke54296,15:poke54295,0:poke54272,h-int(h/256)*256
- 50710 poke54273,h/256:poke54277,26:poke54278,230:poke54276,33
- 50720 fori=1tol:nexti:poke54276,32:\end
- 50730 :
- 50740 \proc catalog:\var a$,b$:close3
- 50750 open3,8,0,"$":get#3,a$,a$
- 50760 get#3,a$,a$:ifst=64thenclose3:\end
- 50770 get#3,a$,b$:printmid$(str$(asc(a$+chr$(0))+256*asc(b$+chr$(0))),2)" ";
- 50780 get#3,a$:printa$;:ifa$<>""then50780
- 50790 print:goto50760
-