760 likes | 834 Views
;Text Editor PPE (Saves in file "TEMP.!!!"). STRING x ' Temporary storage for cursor x position. STRING y ' Temporary storage for cursor y position. STRING BEEP. STRING CR. STRING FILE. STRING KEY. STRING SECURITY. STRING SUBJECT. STRING TEMP. STRING TO.
E N D
;***********************************************************************;***********************************************************************
;***********************************************************************;***********************************************************************
IF (UPPER(TO) = UPPER(U_NAME())) THEN • NEWLINE • PRINTLN "Quit Talking to your self" • END
ELSEIF (TO = "") THEN • NEWLINE • END
IF (SUBJECT = "") THEN • NEWLINE • END
INPUTSTR "Message Security (R = Private, N = None)",SECURITY,@X0F,1,"RNrn",NEWLINE
IF (UPPER(TEMP) = "Y") THEN • ECHO = TRUE
WHILE (key <> CHR(27)) DO 'While the user or sysop dosn't enter an ESC DO • GOSUB GETAKEY • IF (key = CHR(13)) THEN 'If key is a CR do this
GOSUB GETXY 'GET the X/Y possion of the cursor • ANSIPOS 1,y+1 'Move cursor down one line • FPUTLN 1,"" • ELSEIF ((key = CHR(8)) & (x = "1") & (Y <> 3)) THEN • GOSUB GETXY • ANSIPOS 78,y-1 • FSEEK 1,-1,SEEK_CUR • FPUT 1," " • FSEEK 1,-1,SEEK_CUR • ELSEIF ((key = CHR(8)) & (x <> "1")) THEN • BACKUP 1 • PRINT " " • BACKUP 1 • FSEEK 1,-1,SEEK_CUR • FPUT 1," " • FSEEK 1,-1,SEEK_CUR • ELSE 'ELSE PRINT key • GOSUB GETXY • IF (x = 78) THEN • ANSIPOS 1,y+1 • PRINT key • FPUT 1,KEY • ENDIF • GOSUB GETXY • IF (LEN(KEY) = 1) THEN • PRINT key • FPUT 1,KEY • ENDIF