Posted 30 March 2016 - 09:46 PM
methods = peripheral.getMethods("back")
print(methods)
it just outputs "table: 1d4c509e"how do i make it output all the methods and not just a string of rsandom #s
methods = peripheral.getMethods("back")
print(methods)
it just outputs "table: 1d4c509e"
local methods = peripheral.getMethods("back")
for k, v in pairs(methods) do
print(k .. " / " .. v)
end
If you're trying to do this from the lua prompt, simply typing peripheral.getMethods("back") will return the methods for you. Otherwise, you'll need to iterate through the table returned, like so…local methods = peripheral.getMethods("back") for k, v in pairs(methods) do print(k .. " / " .. v) end
I don't believe there's a way to scroll up in the default terminal, but I could be wrong.Also This Is Not related But Can I Scroll Up In A Terminal?