updated monitor

This commit is contained in:
2025-12-12 13:15:36 -05:00
parent 3dff0ae98a
commit caa0d1471d
2 changed files with 7 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ local kernel = require("kernel")
local monitor = kernel.addDriver("monitor-driver") local monitor = kernel.addDriver("monitor-driver")
local function run() local function run()
monitor.initialize()
monitor.writeLine("Starting system...") monitor.writeLine("Starting system...")
monitor.writeLine("System started successfully!") monitor.writeLine("System started successfully!")
end end

View File

@@ -6,4 +6,9 @@ local function writeLine(text)
monitor.setCursorPos(1, y + 1) monitor.setCursorPos(1, y + 1)
end end
return { writeLine = writeLine } local function initialize()
monitor.clear()
writeLine("Initializing monitor driver...")
end
return { writeLine = writeLine, initialize = initialize }