Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term = require("term")
- function tableprint (t)
- local lines = 0
- local res_x, res_y = component.gpu.getResolution()
- for k,v in pairs(t) do
- print(tostring(k) .. ": " .. tostring(v))
- end
- lines = lines + 1
- if (lines > (res_y - 1)) then
- lines = 0
- term.read()
- end
- end
- tp = tableprint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement