From 5d94041e5222361a36f258fb4f282d09de0ae9a2 Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Sat, 14 Feb 2026 22:27:16 +0100 Subject: [PATCH] fix an rendering bug with reset --- src/main.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.lua b/src/main.lua index 8955710..85bb806 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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