From 3bcce0f50f156b3d92c92aa0dad50050245f9940 Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 01:06:10 -0300 Subject: [PATCH] fix: bad clear --- lua/CC Tweaked/tutel/tutel-host.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 23d754a..c378c90 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -270,6 +270,9 @@ function drawLogs(x0, y0, x1, y1) local currentY = y1 - drawnLines term.setCursorPos(1, currentY) + + term.setBackgroundColor(messageBG) + term.clearLine() if lineIdx == 1 then term.setBackgroundColor(format.BG) @@ -280,16 +283,12 @@ function drawLogs(x0, y0, x1, y1) term.setTextColor(messageFG) term.write(line) else - term.setBackgroundColor(messageBG) term.setTextColor(messageFG) term.write((" "):rep(prefixLength)) term.write(line) end - term.setBackgroundColor(messageBG) - term.setCursorPos(1 + prefixLength + #line, currentY) - term.clearLine() drawnLines = drawnLines + 1 end