Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 053838f227 | |||
| 8b8d0cdfa1 |
@@ -11,7 +11,7 @@ local res, err = http.get(SCRIPT_URL)
|
||||
if res then
|
||||
local script = res.readAll()
|
||||
|
||||
local fn, err = load(script, "loader", "t", _ENV)
|
||||
local fn, err = load(script, "loaded-script", "t", _ENV)
|
||||
|
||||
if not err then
|
||||
xpcall(fn, logError)
|
||||
|
||||
@@ -187,7 +187,7 @@ function updateScreen()
|
||||
|
||||
local function drawTextCentered(text)
|
||||
local x = (w / 2) - (text:len() / 2)
|
||||
local curX, curY = term.getCursorPos()
|
||||
local _, curY = term.getCursorPos()
|
||||
term.setCursorPos(x, curY)
|
||||
term.write(text)
|
||||
end
|
||||
@@ -195,8 +195,8 @@ function updateScreen()
|
||||
term.clear()
|
||||
term.setCursorPos(1, 1)
|
||||
|
||||
term.setBackgroundColour(colours.lightGray)
|
||||
term.setTextColour(colours.black)
|
||||
term.setBackgroundColor(colors.lightGray)
|
||||
term.setTextColour(colors.black)
|
||||
term.clearLine()
|
||||
drawTextCentered("tutel host controller")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user