Everything looks fine so far, however…
I would suggest adding a new line after, what I like to call, a "paragraph".
For example this function:
Spoiler
local function drawBottomLineDisplay()
term.setCursorPos(1, height)
local lnstr = "L"..currentLine..", C"..currentChar
term.clearLine()
local dispstatus = status
if dispstatus:sub(1, 4) == "err:" then
dispstatus = status:sub(5, #dispstatus)
doSetColor(colors.white, colors.red, true)
end
term.write(dispstatus)
doSetColor(colors.white, colors.black)
term.setCursorPos(width-#lnstr, height)
term.write(lnstr)
end
Would become:
Spoiler
local function drawBottomLineDisplay()
--# These three functions work together to achieve
--# one thing. That's what I call a "paragraph".
--# That term doesn't actually exist in that sense, I believe.
term.setCursorPos(1, height)
local lnstr = "L"..currentLine..", C"..currentChar
term.clearLine()
--# You should always insert newlines before and after blocks like
--# this if statement here.
local dispstatus = status
if dispstatus:sub(1, 4) == "err:" then
dispstatus = status:sub(5, #dispstatus)
doSetColor(colors.white, colors.red, true)
end
--# Achieves one thing...
term.write(dispstatus)
--# Achieves a different thing.
doSetColor(colors.white, colors.black)
term.setCursorPos(width-#lnstr, height)
term.write(lnstr)
end
You should also put spaces before and after operators.
e.g.:
local lnstr = "L"..currentLine..", C"..currentChar
becomes
local lnstr = "L" .. currentLine .. ", C" .. currentChar