SHOW:
|
|
- or go back to the newest paste.
| 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")
|
| 8 | + | rednet.broadcast(key) |
| 9 | if key == "x" then | |
| 10 | break | |
| 11 | end | |
| 12 | end |