Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
string LogFile = "log.txt" ;Name of Log File
proc main
when target 0 "^M" call LogEntry ;Whenever a C/R is received,
;call the LogEntry procedure
while 1 ;loop forever
yield ;
endwhile ;
endproc
proc LogEntry
string TimeString ;String to store time
string DateString ;String to store date
string LogString ;String to store input
ltimestrs $LTIME DateString TimeString ;Get time & date
locate $ROW-1 0 ;Move cursor up 1 row
termreads LogString 80 ;Read line to LogString
locate $ROW+1 0 ;Move cursor back
fopen 0 LogFile append text ;Append Log File
fstrfmt 0 "%s %s: %s`r`n" DateString TimeString LogString
fclose 0
endproc