term.clear() function rect(x1, y1, x2, y2, clr) for lx = x1, x2 do for ly = y1, y2 do paintutils.drawPixel(lx, ly, clr) end end end while true do local w, h = term.getSize() local indicatorW = w / 3 local indicatorH = h if redstone.testBundledInput("left", colors.red) and redstone.testBundledInput("left", colors.white) then rect(0, 0, indicatorW + 1, indicatorH, colors.yellow) elseif redstone.testBundledInput("left", colors.red) then rect(0, 0, indicatorW + 1, indicatorH, colors.lime) elseif redstone.testBundledInput("left", colors.white) then rect(0, 0, indicatorW + 1, indicatorH, colors.red) else rect(0, 0, indicatorW + 1, indicatorH, colors.green) end if redstone.testBundledInput("left", colors.purple) and redstone.testBundledInput("left", colors.yellow) then rect(indicatorW + 2, 0, indicatorW * 2 + 2, indicatorH, colors.yellow) elseif redstone.testBundledInput("left", colors.purple) then rect(indicatorW + 2, 0, indicatorW * 2 + 2, indicatorH, colors.lime) elseif redstone.testBundledInput("left", colors.yellow) then rect(indicatorW + 2, 0, indicatorW * 2 + 2, indicatorH, colors.red) else rect(indicatorW + 2, 0, indicatorW * 2 + 2, indicatorH, colors.green) end if redstone.testBundledInput("left", colors.blue) and redstone.testBundledInput("left", colors.black) then rect(indicatorW * 2 + 2, 0, indicatorW * 3 + 1, indicatorH, colors.yellow) elseif redstone.testBundledInput("left", colors.blue) then rect(indicatorW * 2 + 2, 0, indicatorW * 3 + 1, indicatorH, colors.lime) elseif redstone.testBundledInput("left", colors.black) then rect(indicatorW * 2 + 2, 0, indicatorW * 3 + 1, indicatorH, colors.red) else rect(indicatorW * 2 + 2, 0, indicatorW * 3 + 1, indicatorH, colors.green) end os.pullEvent("redstone") end