Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- br = peripheral.wrap("top")
- local waitingMessage = "Terminal Glasses on Standby. Waiting for input"
- function text()
- br.clear()
- local tempMessage = waitingMessage
- for x = 0, 5 do
- tempMessage = tempMessage .. "."
- br.addText(2, 170, tempMessage, 0xFF0000)
- sleep(0.2)
- end
- br.clear()
- end
- function run()
- br.clear()
- br.addText(2, 170, "Terminal Glasses initializing. Please stand by.", 0xFF0000)
- sleep(0.2)
- shell.run("glasses")
- end
- function update()
- if not rs.getInput("front") then
- text()
- print("False")
- else
- print("True")
- run()
- end
- end
- while true do
- update()
- end
Advertisement
Add Comment
Please, Sign In to add comment