fix an rendering bug with reset
This commit is contained in:
@@ -11,7 +11,12 @@ print("JUFS Technologies (c) 2026 (Justus Wolff)")
|
|||||||
|
|
||||||
print("fuel: "..tostring(turtle.getFuelLevel()).."/"..tostring(turtle.getFuelLimit()))
|
print("fuel: "..tostring(turtle.getFuelLevel()).."/"..tostring(turtle.getFuelLimit()))
|
||||||
|
|
||||||
|
function term.setcol(fc, bc)
|
||||||
|
term.setTextColor(fc)
|
||||||
|
term.setBackgroundColor(bc)
|
||||||
|
end
|
||||||
local function reset()
|
local function reset()
|
||||||
|
term.setcol(colors.white, colors.white)
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
end
|
end
|
||||||
@@ -19,10 +24,6 @@ local function incline()
|
|||||||
local _,y = term.getCursorPos()
|
local _,y = term.getCursorPos()
|
||||||
term.setCursorPos(1,y+1)
|
term.setCursorPos(1,y+1)
|
||||||
end
|
end
|
||||||
function term.setcol(fc, bc)
|
|
||||||
term.setTextColor(fc)
|
|
||||||
term.setBackgroundColor(bc)
|
|
||||||
end
|
|
||||||
local function selopt(options, title)
|
local function selopt(options, title)
|
||||||
local selected = 1
|
local selected = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user