Advertisement
Guest User

RC Turtle Client

a guest
Aug 1st, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("top")
  2. print("Computercraft Turtle Control Client")
  3. print("-----------------------------------")
  4. print("   W     E")
  5. print(" A S D   Q")
  6. while true do
  7.   local event, key = os.pullEvent("char")
  8.   rednet.broadcast(key)
  9.   if key == "x" then
  10.     break
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement