diff --git a/energy_control b/energy_control index 6a6ab1e..eb6f26b 100644 --- a/energy_control +++ b/energy_control @@ -45,20 +45,15 @@ end function draw_screen() while true do - term.clear() - term.setCursorPos(0, 0) - term.setTextColor(colors.white) - term.getBackgroundColor(colors.black) + -- term.clear() + -- term.setCursorPos(0, 0) term.write('Press "R" to toggle the rainbows\n') term.write('Rainbows state: ') if redstone_toggle_state == true then - term.getBackgroundColor(colors.green) - term.write('On') + term.blit('On', colors.white, colors.green) else - term.getBackgroundColor(colors.red) - term.write('Off') + term.blit('Off', colors.white, colors.red) end - term.getBackgroundColor(colors.black) sleep(0.5) end end