From aec5a1d0e4076defac8a4203c82630f91458be6e Mon Sep 17 00:00:00 2001 From: Hadinos Sanosam Date: Tue, 12 Jan 2021 01:37:46 +0100 Subject: [PATCH] Added printToMon function to utils --- utils | 6 ++++++ 1 file changed, 6 insertions(+) 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