This commit is contained in:
navid.sassan 2021-04-02 16:52:45 +02:00
parent c0f44f1a23
commit 10fa054844

View File

@ -51,9 +51,9 @@ function recv()
term.setCursorPos(1, 1) term.setCursorPos(1, 1)
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)
term.write('Press "R" to toggle the rainbows') write('Press "R" to toggle the rainbows\n')
xPos, yPos = term.getCursorPos() -- xPos, yPos = term.getCursorPos()
term.setCursorPos(1,(yPos + 1)) -- term.setCursorPos(1,(yPos + 1))
term.write('Rainbows state: ') term.write('Rainbows state: ')
if redstone_toggle_state == true then if redstone_toggle_state == true then
term.setBackgroundColor(colors.green) term.setBackgroundColor(colors.green)