Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CHANNEL = 0
- local HOST_NAME = 'MamaBear'
- local PROTOCOL = 'MINE'
- function clearTerminal()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function initRednetConnection()
- rednet.open("back", CHANNEL);
- rednet.host(HOST_NAME, PROTOCOL)
- end
- function main()
- clearTerminal()
- initRednetConnection()
- print('')
- print("Command...")
- while true do
- local input = read()
- rednet.broadcast(input, 'MINE')
- end
- end
- main()
Add Comment
Please, Sign In to add comment