Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Running Instructions
- --Start with <name>.wrapMon(side)
- --Next do <name>.print(text)
- --Local Variables
- --Local Functions
- local function getMonStats()
- monw,monh = apimon.getSize()
- end
- local function getMyStats()
- myx,myy = apimon.getCursorPos()
- end
- local function foobar()
- --
- end
- --Testing Functions
- function test()
- getMonStats()
- print(monw.." : "..monh)
- getMyStats()
- print(myx.." : "..myy)
- end
- --Public Functions
- function wrapMon(side)
- apimon = peripheral.wrap(side)
- getMyStats()
- getMonStats()
- end
- function clear()
- apimon.clear()
- apimon.setCursorPos(1,1)
- end
- function print(text)
- getMyStats()
- apimon.write(text)
- newh = myy + 1
- apimon.setCursorPos(1,newh)
- end
Advertisement
Add Comment
Please, Sign In to add comment