7035 IF CULF% THEN IF TPOS%>26 THEN TTPOS%=TTPOS%-1:TPOS%=TPOS%-1:LOCATE 6,TPOS%:GOTO 7020 ELSE BEEP:GOTO 7020
7040 IF CURT% THEN IF TPOS%<38 AND TTPOS%<=TLEN% THEN TTPOS%=TTPOS%+1:TPOS%=TPOS%+1:LOCATE 6,TPOS%:GOTO 7020 ELSE BEEP:GOTO 7020
7050 IF DEL% THEN IF TPOS%>25 AND TTPOS%<=TLEN% THEN TEMPLATE$=MID$(TEMPLATE$,1,TTPOS%-1)+MID$(TEMPLATE$,TTPOS%+1):TEMPLATE$=TEMPLATE$+STRING$(13-LEN(TEMPLATE$),32):TLEN%=TLEN%-1:LOCATE 6,26:PRINT TEMPLATE$;:LOCATE 6,TPOS%:GOTO 7020 ELSE BEEP:GOTO 7020
7060 IF TPOS%<38 THEN MID$(TEMPLATE$,TTPOS%,1)=K$:LOCATE 6,TPOS%:PRINT K$;:TLEN%=INSTR(1,TEMPLATE$," ")-1:TPOS%=TPOS%+1:TTPOS%=TTPOS%+1:GOTO 7020 ELSE BEEP:GOTO 7020
7499 RETURN
7500 IF TEMPLATE$=STRING$(13,32) THEN PER%=-1:GOTO 7999
7510 PER%=INSTR(TEMPLATE$,"."):IF PER%=0 THEN LOCATE 6,26:PRINT STRING$(13,32);:GOTO 7999
7520 WHILE PER%<9:TEMPLATE$=MID$(TEMPLATE$,1,PER%-1)+" "+MID$(TEMPLATE$,PER%):PER%=INSTR(TEMPLATE$,"."):WEND
7530 IF LEN(TEMPLATE$)>12 THEN TEMPLATE$=MID$(TEMPLATE$,1,12)
7540 IF LEN(TEMPLATE$)<12 THEN TEMPLATE$=TEMPLATE$+STRING$(12-LEN(TEMPLATE$),32)
7550 FOR I%=1 TO PER%-1
7560 IF MID$(TEMPLATE$,I%,1)="*" THEN MID$(A$,I%,9-I%)=STRING$(9-I%,"?"):GOTO 7700
7570 MID$(A$,I%,1)=MID$(TEMPLATE$,I%,1)
7580 NEXT I%
7700 IF LEN(TEMPLATE$)=PER% THEN GOTO 7999
7710 TEMPLATE$=MID$(TEMPLATE$,PER%+1)
7720 FOR I%=1 TO LEN(TEMPLATE$)
7730 IF MID$(TEMPLATE$,I%,1)="*" THEN MID$(A$,8+I%)=STRING$(4-I%,"?"):GOTO 7999
7740 MID$(A$,8+I%,1)=MID$(TEMPLATE$,I%,1)
7750 NEXT I%
7999 RETURN
8000 CULF%=0:CURT%=0:DEL%=0
8002 K$=INKEY$:IF K$="" THEN 8002
8005 IF LEN(K$)>1 THEN K%=ASC(MID$(K$,2,1)):GOTO 8100 ELSE K%=ASC(K$)
8010 IF K%=13 THEN RET%=-1:GOTO 8199
8015 IF K%>61 AND K%<91 THEN 8199
8020 IF K%>96 AND K%<123 THEN K%=K%-32:K$=CHR$(K%):GOTO 8199
8030 IF K%>47 AND K%<58 THEN 8199
8040 IF K%>34 AND K%<43 THEN 8199
8050 IF K%=33 OR K%=45 OR K%=46 OR K%=60 OR K%=92 OR K%=95 OR K%=96 OR K%=123 OR K%=124 OR K%=125 THEN 8199