Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- mon = peripheral.wrap("top")
- mon.setTextScale(0.5)
- term.redirect(mon)
- print("computer booted")
- local function rmButtons()
- while true do
- local event,from,message,distance = os.pullEvent("rednet_message")
- if tonumber(message) then
- os.queueEvent("key",tonumber(message) or 0)
- elseif message ~= "nil" then
- os.queueEvent("char",message)
- end
- end
- end
- local function OverShell()
- shell.run("shell")
- end
- parallel.waitForAny(rmButtons,OverShell)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement