fix: wrong cursor pos?
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user