tidy UI and newline
This commit is contained in:
parent
9ea564347b
commit
6dcd1cd1b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue