fix an rendering bug with reset

This commit is contained in:
Justus Wolff
2026-02-14 22:27:16 +01:00
parent c671428cbc
commit 5d94041e52

View File

@@ -11,7 +11,12 @@ print("JUFS Technologies (c) 2026 (Justus Wolff)")
print("fuel: "..tostring(turtle.getFuelLevel()).."/"..tostring(turtle.getFuelLimit()))
function term.setcol(fc, bc)
term.setTextColor(fc)
term.setBackgroundColor(bc)
end
local function reset()
term.setcol(colors.white, colors.white)
term.clear()
term.setCursorPos(1,1)
end
@@ -19,10 +24,6 @@ local function incline()
local _,y = term.getCursorPos()
term.setCursorPos(1,y+1)
end
function term.setcol(fc, bc)
term.setTextColor(fc)
term.setBackgroundColor(bc)
end
local function selopt(options, title)
local selected = 1