Advertisement
D4rkSol1tud3

control

May 24th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local modem = peripheral.wrap("back")
  2.  
  3. local input = 0
  4.  
  5. while(input ~= "exit") do
  6.   term.setCursorPos(1, 1)
  7.   term.clear()
  8.   term.write("Enter a command: ")
  9.   input = read()
  10.   modem.transmit(66, 0, input)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement