1
0
Fork 0

tidy UI and newline

This commit is contained in:
Casey 2024-01-12 21:22:37 +03:00
parent 9ea564347b
commit 6dcd1cd1b2
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 4 additions and 2 deletions

View File

@ -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