fix: wrong cursor pos?
This commit is contained in:
@@ -186,13 +186,13 @@ function updateScreen()
|
||||
local w, h = term.getSize()
|
||||
|
||||
term.clear()
|
||||
term.setCursorPos(0, 0)
|
||||
term.setCursorPos(1, 1)
|
||||
|
||||
local title = "tutel host controller"
|
||||
local titleStart = (w / 2) - (title:len() / 2)
|
||||
term.setBackgroundColour(colours.red)
|
||||
term.clearLine()
|
||||
term.setCursorPos(titleStart, 0)
|
||||
term.setCursorPos(titleStart, 1)
|
||||
term.write(title)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user