diff --git a/utils b/utils index b5dabba..a8080dc 100644 --- a/utils +++ b/utils @@ -12,4 +12,10 @@ function utils.getSideOf(name) --get which side, if any, a peripheral p is conne end end +function printToMon(mon, text) + local x, y = mon.getCursorPos() + mon.write(text) + mon.setCursorPos(x, y+1) +end + return utils