Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- local mon = peripheral.wrap("monitor_2")
- mon.clear()
- local x = 1
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- term.write("Please enter the peripheral name or location.")
- term.setCursorPos(1,2)
- local R = read()
- for i,v in pairs(peripheral.getMethods(R))
- do print(i..". "..v)
- mon.setCursorPos(1,x)
- mon.write(i..". "..v)
- x = x+1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement