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 '-----------------------------------------------------------------------------
37 '-----------------------------------------------------------------------------
39 print "stla
\87 kl vesu Enter"
41 '-----------------------------------------------------------------------------
43 A$="Jste uzivatelem pocitacove site C&P NETWORK. Jste vybaven harddiskem se"
44 CALL ECHO (5,16,A$,13)
45 A$="softwarovym vybavenim. Mate k dispozici modem, takze muzete navazat"
46 CALL ECHO (7,17,A$,13)
47 A$="spojeni s jinym uzivatelem C&P NETWORK."
48 CALL ECHO (7,18,A$,13)
54 '-----------------------------------------------------------------------------
58 '-----------------------------------------------------------------------------
62 '-----------------------------------------------------------------------------
64 ' postupny tisk textu obsazeneho v retezcove promenne A$
81 '--------------------------------------------------------------------------
86 ' X a Y jsou textove souradnice menu-okna
87 ' A$ obsahuje text okna
88 ' D je pocet polozek (radku) v menu
89 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
91 ' v promenne MENU podprogram vraci cislo zvolene polozky
93 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
96 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
98 FOR A= 1 TO LEN(A$) STEP L
100 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
102 LOCATE Y+A/L+1,X: PRINT CHR$(200);
103 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
105 IF W=1 THEN W=0 : RETURN
109 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
110 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
111 IF MENU < 1 THEN MENU = D
112 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
113 IF MENU > D THEN MENU = 0 : EXIT LOOP
114 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
115 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
122 '-----------------------------------------------------------------------------
129 '-----------------------------------------------------------------------------
132 IF INKEY$<>"" THEN EXIT LOOP
133 C=C+1:IF C>15 THEN C=1
134 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
137 '-----------------------------------------------------------------------------