From 6dcd1cd1b2314f547b3976f54c9dda78b9d5469a Mon Sep 17 00:00:00 2001 From: hkc Date: Fri, 12 Jan 2024 21:22:37 +0300 Subject: [PATCH] tidy UI and newline --- turtos/ctrl.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/turtos/ctrl.lua b/turtos/ctrl.lua index fc0c0bc..e794ea0 100644 --- a/turtos/ctrl.lua +++ b/turtos/ctrl.lua @@ -56,13 +56,15 @@ function() while true do os.pullEvent() term.clear() - term.setCursorPos(1, 1) + local i = 1 for id, res in pairs(respondedTurtles) do + term.setCursorPos(1, i) term.write(string.format("%5d => ", id)) term.setTextColor(res[1] and colors.green or colors.red) - term.write(res[1] and "[ OK ] " or "[FAIL] ") + term.write(res[1] and "OK " or "ER ") term.write(tostring(res[2])) term.setTextColor(colors.white) + i = i + 1 end end end