6 INPUT " ZADEJTE VSTUPNÍ PIN " ;A
21 LINE (A,A)-(640-A,A),C
22 LINE (A,106-A)-(640-A,106-A),C
23 LINE (A,A)-(A,106-A),C
24 LINE (640-A,A)-(640-A,106-A),C
25 LINE (A,110+A)-(640-A,110+A),C
26 LINE (A,200-A)-(640-A,200-A),C
27 LINE (A,110+A)-(A,200-A),C
28 LINE (640-A,110+A)-(640-A,200-A),C
32 A$="POZDRAV1 POMOC2 TELEFON3 HELP4 ESC Q"
35 ON MENU GOSUB TELEFON,DIR,LOAD,HELP,KONEC
38 '-----------------------------------------------------------------------------
40 print "HLAVNE KDYZ POZDRAVITE:DOBRY DEN TADY----- -----."
42 '-----------------------------------------------------------------------------
45 PRINT "PRAVE STE SE DOVOLALI NA TEL.Č.:158"
47 print "TADY POLICIE H.L.M.PRAHY"
49 '-----------------------------------------------------------------------------
51 print "stlač klávesu*ENTER*"
53 '-----------------------------------------------------------------------------
55 A$="ZKOUSKA OVLADANI TELEFONU"
56 CALL ECHO (5,16,A$,13)
57 A$="STISKNĚTE TELEFON1 NEBO POMOC"
58 CALL ECHO (7,17,A$,13)
59 A$="VIDITE UŽ TELEFONUJETE PO SITI MUDRUŇKANET"
60 CALL ECHO (7,18,A$,13)
66 '-----------------------------------------------------------------------------
68 PRINT " DOBRY DEN DOVOLALI JSTE SE NA TEL.:56 18 243 "
70 PRINT " TADY TOMAS MUDRUNKA "
74 '-----------------------------------------------------------------------------
78 '-----------------------------------------------------------------------------
80 ' postupny tisk textu obsazeneho v retezcove promenne A$
97 '--------------------------------------------------------------------------
102 ' X a Y jsou textove souradnice menu-okna
103 ' A$ obsahuje text okna
104 ' D je pocet polozek (radku) v menu
105 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
107 ' v promenne MENU podprogram vraci cislo zvolene polozky
109 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
112 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
114 FOR A= 1 TO LEN(A$) STEP L
116 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
118 LOCATE Y+A/L+1,X: PRINT CHR$(200);
119 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
121 IF W=1 THEN W=0 : RETURN
125 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
126 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
127 IF MENU < 1 THEN MENU = D
128 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
129 IF MENU > D THEN MENU = 0 : EXIT LOOP
130 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
131 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
138 '-----------------------------------------------------------------------------
145 '-----------------------------------------------------------------------------
148 IF INKEY$<>"" THEN EXIT LOOP
149 C=C+1:IF C>15 THEN C=1
150 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
153 '-----------------------------------------------------------------------------