9 DATA 8,7,15,15,7,8,0,8,7,15,15,7,8,0,8,7,15,15,7,8,0,0,8,8,8,8,8,7,7,7,7,7,7,15,15,15,15,15,7,7,7,7,7,8,8,8,8,8,8,8,8,8,
12 LINE (A,A)-(640-A,A),C
13 LINE (A,106-A)-(640-A,106-A),C
14 LINE (A,A)-(A,106-A),C
15 LINE (640-A,A)-(640-A,106-A),C
16 LINE (A,110+A)-(640-A,110+A),C
17 LINE (A,200-A)-(640-A,200-A),C
18 LINE (A,110+A)-(A,200-A),C
19 LINE (640-A,110+A)-(640-A,200-A),C
23 A$="TELEFON DIR exit HELP LOAD "
26 ON MENU GOSUB TELEFON,DIR,KONEC,HELP,LOAD
29 '-----------------------------------------------------------------------------
33 '-----------------------------------------------------------------------------
39 '-----------------------------------------------------------------------------
41 print "stlač klávesu Enter"
43 '-----------------------------------------------------------------------------
45 A$="Jste uzivatelem pocitacove site C&P NETWORK. Jste vybaven harddiskem se"
46 CALL ECHO (5,16,A$,13)
47 A$="softwarovym vybavenim. Mate k dispozici modem, takze muzete navazat"
48 CALL ECHO (7,17,A$,13)
49 A$="spojeni s jinym uzivatelem C&P NETWORK."
50 CALL ECHO (7,18,A$,13)
56 '-----------------------------------------------------------------------------
72 '-----------------------------------------------------------------------------
76 '-----------------------------------------------------------------------------
78 ' postupny tisk textu obsazeneho v retezcove promenne A$
95 '--------------------------------------------------------------------------
100 ' X a Y jsou textove souradnice menu-okna
101 ' A$ obsahuje text okna
102 ' D je pocet polozek (radku) v menu
103 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
105 ' v promenne MENU podprogram vraci cislo zvolene polozky
107 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
110 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
112 FOR A= 1 TO LEN(A$) STEP L
114 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
116 LOCATE Y+A/L+1,X: PRINT CHR$(200);
117 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
119 IF W=1 THEN W=0 : RETURN
123 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
124 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
125 IF MENU < 1 THEN MENU = D
126 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
127 IF MENU > D THEN MENU = 0 : EXIT LOOP
128 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
129 IF MENU <> M THEN LOCATE Y+MENU,X+L+2:COLOR 11:PRINT CHR$(174);:LOCATE Y+MENU,X+1:PRINT CHR$(175);:COLOR C
136 '-----------------------------------------------------------------------------
143 '-----------------------------------------------------------------------------
146 IF INKEY$<>"" THEN EXIT LOOP
147 C=C+1:IF C>15 THEN C=1
148 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
151 '-----------------------------------------------------------------------------