Updated monitor driver

This commit is contained in:
2025-12-12 13:11:33 -05:00
parent f32a319279
commit 3dff0ae98a
2 changed files with 13 additions and 3 deletions

9
monitor-driver.lua Normal file
View File

@@ -0,0 +1,9 @@
local monitor = peripheral.find("monitor")
local function writeLine(text)
monitor.write(text)
local x, y = monitor.getCursorPos()
monitor.setCursorPos(1, y + 1)
end
return { writeLine = writeLine }