fix: wrong cursor pos?

This commit is contained in:
2025-05-06 18:26:53 -03:00
parent cf6960aa2c
commit 04e65468c7
+2 -2
View File
@@ -186,13 +186,13 @@ function updateScreen()
local w, h = term.getSize() local w, h = term.getSize()
term.clear() term.clear()
term.setCursorPos(0, 0) term.setCursorPos(1, 1)
local title = "tutel host controller" local title = "tutel host controller"
local titleStart = (w / 2) - (title:len() / 2) local titleStart = (w / 2) - (title:len() / 2)
term.setBackgroundColour(colours.red) term.setBackgroundColour(colours.red)
term.clearLine() term.clearLine()
term.setCursorPos(titleStart, 0) term.setCursorPos(titleStart, 1)
term.write(title) term.write(title)
end end