Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local shell = require("shell")
- local event = require("event")
- local term = require("term")
- local args = shell.parse(...)
- local adr = nil
- local comp = component.proxy(args[1])
- adr = args[1]
- if(comp == nil)
- then
- adr = nil
- adr = component.get(args[1])
- for address,name in component.list(args[1]) do
- if adr == nil
- then
- adr = address
- end
- end
- comp = component.proxy(adr)
- end
- term.clear()
- local temp = 0
- for name in pairs(comp) do
- temp = temp + 1
- if (temp % 25 == 0) and (temp ~= 0)
- then
- event.pull()
- event.pull()
- term.clear()
- end
- print(name)
- end
- event.pull()
- event.pull()
- term.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement