Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --VERSION: 11
- --PASTEBIN: iTPJazCA
- --FUNC--
- w = function()
- w, h = term.getSize()
- return w
- end
- h = function()
- w, h = term.getSize()
- return h
- end
- area = function()
- return term.getSize()
- end
- pos = function(x, y)
- term.setCursorPos(x, y)
- end
- cols = function(sCol, tCol)
- term.setBackgroundColor(sCol)
- txtCol(tCol)
- end
- txtCol = function(col)
- term.setTextColor(col)
- end
- clr = function(col)
- if col ~= nil then
- term.setBackgroundColor(col)
- end
- term.clear()
- pos(1, 1)
- end
- switch = function(arg)
- term.redirect(arg)
- pos(1,1)
- end
- write = function(msg)
- msg = tostring(msg)
- term.write(msg)
- end
Add Comment
Please, Sign In to add comment