View difference between Paste ID: 5MwcHkkA and BQQSSxZs
SHOW: | | - or go back to the newest paste.
1-
rednet.open("top")
1+
for k,v in pairs({"right","left","top","bottom","front","back"}) do
2
        if peripheral.getType(v)=="modem" then
3
                rednet.open(v)
4-
print("   W     E")
4+
                isOpen=true
5-
print(" A S D   Q")
5+
        end
6
end
7
print("Computercraft Turtle Control Client")
8
print("-----------------------------------")
9
print("   W     E  T Y")
10
print(" A S D   Q  G H")
11
print(" U I O P    B N")
12
while true do
13
  local event, key = os.pullEvent("char")
14
  rednet.broadcast(key)
15
  if key == "x" then
16
    break
17
  end
18
end