14 lines
337 B
Lua
14 lines
337 B
Lua
local monitor = peripheral.find("monitor")
|
|
|
|
local function writeLine(text)
|
|
monitor.write(text)
|
|
local x, y = monitor.getCursorPos()
|
|
monitor.setCursorPos(1, y + 1)
|
|
end
|
|
|
|
local function initialize()
|
|
monitor.clear()
|
|
writeLine("Initializing monitor driver...")
|
|
end
|
|
|
|
return { writeLine = writeLine, initialize = initialize } |