Unrelated tasks to wrap up the console implementation:
Make the canvas size reliably 2 rows shorter than the full screen.
Increase font size (double?) to have 64 characters in a row.
Rudimentary Lua console:
Upon entering a Lua chunk as text (completed by pressing the ENTER key), the following must happen:
It is compiled by loadstring
If there is an error, the location of the error must be parsed from the error message, the string must be returned into the editing area with the cursor placed at the location of the error.
If there is no error, the compiled chunk must be evaluated
In the global environment, the print function should be changed to send the output to the canvas.
Unrelated tasks to wrap up the console implementation:
Rudimentary Lua console:
loadstring
print
function should be changed to send the output to the canvas.