Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- KSSH Storage System Installer with UI
- local GITHUB_REPO = "Temperdox/KSSH_Storage"
- local GITHUB_BRANCH = "master"
- local GITHUB_PATH = "src"
- local VERSION = "1.3.1"
- -- Ignore list - files that should not be downloaded
- local IGNORE_LIST = {
- ["install.lua"] = true,
- [".gitignore"] = true,
- ["README.md"] = true,
- [".git"] = true
- }
- -- Color scheme
- local COLORS = {
- background = colors.black,
- text = colors.white,
- highlight = colors.gray,
- highlightText = colors.black,
- success = colors.lime,
- error = colors.red,
- warning = colors.orange,
- info = colors.purple,
- skip = colors.yellow
- }
- -- Installation mode
- local INSTALL_MODE = {
- CLEAN = "clean",
- UPDATE = "update"
- }
- -- UI Helper Functions
- local function clamp(x, a, b)
- return math.max(a, math.min(b, x))
- end
- local function clearScreen()
- term.setBackgroundColor(COLORS.background)
- term.setTextColor(COLORS.text)
- term.clear()
- term.setCursorPos(1, 1)
- end
- local function drawHeader(title)
- local w, h = term.getSize()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(COLORS.info)
- term.setTextColor(COLORS.background)
- term.clearLine()
- local titleText = " " .. title .. " "
- local x = math.floor((w - #titleText) / 2) + 1
- term.setCursorPos(x, 1)
- term.write(titleText)
- term.setBackgroundColor(COLORS.background)
- term.setTextColor(COLORS.text)
- end
- local function drawList(x, y, w, h, title, items, sel, scroll)
- local function line(s)
- term.setCursorPos(x, y)
- term.write((" "):rep(w))
- if s then
- term.setCursorPos(x + 1, y)
- term.write(s:sub(1, math.max(0, w - 2)))
- end
- y = y + 1
- end
- -- Draw title if present
- if title then
- term.setCursorPos(x, y)
- term.write((" "):rep(w))
- term.setCursorPos(x + 1, y)
- term.write(title:sub(1, math.max(0, w - 2)))
- y = y + 1
- end
- local visible = h - (title and 1 or 0)
- sel = clamp(sel, 1, math.max(1, #items))
- scroll = clamp(scroll, 0, math.max(0, #items - visible))
- for i = 1, visible do
- local idx = scroll + i
- local s = items[idx] or ""
- if idx == sel then
- term.setBackgroundColor(COLORS.highlight)
- term.setTextColor(COLORS.highlightText)
- line(s)
- term.setBackgroundColor(COLORS.background)
- term.setTextColor(COLORS.text)
- else
- line(s)
- end
- end
- return sel, scroll
- end
- local function move(sel, scroll, total, maxRows, delta)
- sel = clamp(sel + delta, 1, math.max(1, total))
- local top = sel - 1
- local bottom = sel
- if top < scroll then
- scroll = top
- elseif bottom > scroll + maxRows then
- scroll = bottom - maxRows
- end
- scroll = clamp(scroll, 0, math.max(0, total - maxRows))
- return sel, scroll
- end
- local function pickFromList(title, items, descriptions)
- if #items == 0 then return nil end
- if #items == 1 then return 1 end
- clearScreen()
- drawHeader(title)
- local w, h = term.getSize()
- local listH = h - 6 -- Leave room for header and description
- local sel, scr = 1, 0
- while true do
- -- Clear and redraw
- term.setCursorPos(1, 3)
- for i = 3, h do
- term.setCursorPos(1, i)
- term.clearLine()
- end
- -- Draw the list
- sel, scr = drawList(1, 3, w, listH, nil, items, sel, scr)
- -- Draw description if available
- if descriptions and descriptions[sel] then
- term.setCursorPos(1, h - 2)
- term.setTextColor(COLORS.info)
- term.write(string.rep("-", w))
- term.setCursorPos(2, h - 1)
- term.write(descriptions[sel]:sub(1, w - 2))
- term.setCursorPos(2, h)
- local line2 = descriptions[sel]:sub(w - 1, (w - 2) * 2)
- if #line2 > 0 then
- term.write(line2)
- end
- term.setTextColor(COLORS.text)
- end
- -- Handle input
- local e = {os.pullEvent()}
- local ev = e[1]
- if ev == "key" then
- local k = e[2]
- if k == keys.enter then
- return sel
- elseif k == keys.q then
- return nil
- elseif k == keys.up then
- sel, scr = move(sel, scr, #items, listH, -1)
- elseif k == keys.down then
- sel, scr = move(sel, scr, #items, listH, 1)
- elseif k == keys.pageUp then
- sel, scr = move(sel, scr, #items, listH, -(listH - 1))
- elseif k == keys.pageDown then
- sel, scr = move(sel, scr, #items, listH, (listH - 1))
- elseif k == keys.home then
- sel, scr = move(1, 0, #items, listH, 0)
- elseif k == keys["end"] then
- sel, scr = move(#items, math.max(0, #items - listH), #items, listH, 0)
- end
- elseif ev == "mouse_scroll" then
- local d = e[2]
- sel, scr = move(sel, scr, #items, listH, d)
- elseif ev == "term_resize" then
- w, h = term.getSize()
- listH = h - 6
- scr = clamp(scr, 0, math.max(0, #items - listH))
- sel = clamp(sel, 1, math.max(1, #items))
- end
- end
- end
- local function showProgress(title, message, percent, color)
- clearScreen()
- drawHeader(title)
- local w, h = term.getSize()
- local barWidth = math.min(40, w - 4)
- local barX = math.floor((w - barWidth) / 2)
- local barY = math.floor(h / 2)
- -- Message
- term.setCursorPos(math.floor((w - #message) / 2), barY - 2)
- if color then
- term.setTextColor(color)
- end
- term.write(message)
- term.setTextColor(COLORS.text)
- -- Progress bar
- term.setCursorPos(barX, barY)
- term.write("[")
- local filled = math.floor(barWidth * (percent / 100))
- term.setTextColor(COLORS.success)
- term.write(string.rep("=", filled))
- term.setTextColor(COLORS.text)
- term.write(string.rep(" ", barWidth - filled))
- term.write("]")
- -- Percentage
- local percentText = math.floor(percent) .. "%"
- term.setCursorPos(math.floor((w - #percentText) / 2), barY + 2)
- term.write(percentText)
- end
- -- File Management Functions
- local function getFileSize(path)
- if not fs.exists(path) then
- return 0
- end
- return fs.getSize(path)
- end
- local function downloadFile(path, destination, mode)
- local url = string.format(
- "https://raw.githubusercontent.com/%s/%s/%s/%s",
- GITHUB_REPO, GITHUB_BRANCH, GITHUB_PATH, path
- )
- local response = http.get(url)
- if not response then
- return false, "Failed to download: " .. path
- end
- local content = response.readAll()
- response.close()
- -- In update mode, check if file content is identical
- if mode == INSTALL_MODE.UPDATE and fs.exists(destination) then
- local existingSize = getFileSize(destination)
- local newSize = #content
- -- If sizes match, compare content
- if existingSize == newSize then
- local existingFile = fs.open(destination, "r")
- if existingFile then
- local existingContent = existingFile.readAll()
- existingFile.close()
- if existingContent == content then
- -- Files are identical, skip
- return true, nil, true -- third return value indicates skip
- end
- end
- end
- end
- -- Create directory if needed
- local dir = fs.getDir(destination)
- if dir ~= "" and not fs.exists(dir) then
- fs.makeDir(dir)
- end
- -- Backup existing file in update mode
- if mode == INSTALL_MODE.UPDATE and fs.exists(destination) then
- local backupPath = destination .. ".backup"
- if fs.exists(backupPath) then
- fs.delete(backupPath)
- end
- fs.copy(destination, backupPath)
- end
- -- Write file
- local file = fs.open(destination, "w")
- if not file then
- return false, "Failed to write: " .. destination
- end
- file.write(content)
- file.close()
- return true, nil, false
- end
- -- Detection Functions
- local function detectExistingInstallation()
- -- Check for storage system
- local storageFiles = {
- "main.lua",
- "core/inventory.lua",
- "tasks/task_pool.lua"
- }
- local hasStorage = true
- for _, file in ipairs(storageFiles) do
- if not fs.exists(file) then
- hasStorage = false
- break
- end
- end
- -- Check for turtle system
- local turtleFiles = {
- "turtle/main.lua",
- "turtle/service/crafter_service.lua",
- "turtle/ui/ui_manager.lua"
- }
- local hasTurtle = true
- for _, file in ipairs(turtleFiles) do
- if not fs.exists(file) then
- hasTurtle = false
- break
- end
- end
- if hasStorage then
- return "storage"
- elseif hasTurtle then
- return "turtle"
- else
- return nil
- end
- end
- local function promptInstallMode()
- local options = {
- "Update (preserve settings & logs)",
- "Clean Install (remove everything)",
- "Cancel"
- }
- local descriptions = {
- "Updates code files only, skips unchanged files, preserves logs, configs, and data",
- "Removes ALL files except ROM and this installer - complete fresh start",
- "Exit installer without making changes"
- }
- local selection = pickFromList("Existing Installation Detected", options, descriptions)
- if not selection or selection == 3 then
- return nil
- elseif selection == 1 then
- return INSTALL_MODE.UPDATE
- else
- return INSTALL_MODE.CLEAN
- end
- end
- -- Installation Functions
- local function getStorageFiles()
- return {
- -- Core files
- "storage/core/crafter.lua",
- "storage/core/inventory.lua",
- "storage/core/mover.lua",
- "storage/core/peripherals.lua",
- "storage/core/search.lua",
- "storage/core/sound.lua",
- -- JSON files
- "storage/json/recipes.json",
- -- Orders
- "storage/orders/order_manager.lua",
- -- Tasks
- "storage/tasks/deposit_task.lua",
- "storage/tasks/recipe_listener.lua",
- "storage/tasks/reformat_task.lua",
- "storage/tasks/sort_task.lua",
- "storage/tasks/task_pool.lua",
- -- UI
- "storage/ui/overview.lua",
- -- Utilities
- "storage/util/class.lua",
- "storage/util/executor_service.lua",
- "storage/util/log.lua",
- "storage/util/log_print.lua",
- -- Main files
- "storage/main.lua",
- "storage/startup.lua"
- }
- end
- local function getTurtleFiles()
- return {
- -- Core files
- "turtle/core/store_recipe.lua",
- -- Service files
- "turtle/service/crafter_service.lua",
- "turtle/service/executor_service.lua",
- "turtle/service/recipe_service.lua",
- -- Tasks
- "turtle/tasks/bridge.lua",
- -- UI
- "turtle/ui/recipe_ui.lua",
- "turtle/ui/ui_manager.lua",
- -- Utilities
- "turtle/util/log_print.lua",
- -- Main files
- "turtle/main.lua",
- "turtle/startup.lua"
- }
- end
- local function cleanInstall(installType)
- clearScreen()
- drawHeader("Clean Install - Complete System Wipe")
- local w, h = term.getSize()
- term.setCursorPos(2, 3)
- term.setTextColor(COLORS.warning)
- term.write("DELETING ALL FILES...")
- term.setTextColor(COLORS.text)
- -- Get the name of this installer script
- local currentProgram = shell.getRunningProgram()
- -- Helper function to recursively delete directories
- local function deleteRecursive(path)
- if fs.isDir(path) then
- -- List all files in directory
- for _, file in ipairs(fs.list(path)) do
- deleteRecursive(fs.combine(path, file))
- end
- end
- -- Delete the file/empty directory if it's not ROM or the installer
- if not fs.isReadOnly(path) and path ~= currentProgram then
- fs.delete(path)
- end
- end
- -- Get all files and directories in root
- local allFiles = fs.list("/")
- local totalFiles = #allFiles
- local deletedCount = 0
- for i, file in ipairs(allFiles) do
- local path = fs.combine("/", file)
- -- Skip ROM directory and the installer itself
- if not fs.isReadOnly(path) and path ~= currentProgram and file ~= currentProgram then
- term.setCursorPos(2, 4)
- term.clearLine()
- term.write("Deleting: " .. file .. " (" .. math.floor(i * 100 / totalFiles) .. "%)")
- -- Delete the file or directory recursively
- local ok, err = pcall(deleteRecursive, path)
- if ok then
- deletedCount = deletedCount + 1
- else
- term.setCursorPos(2, 5)
- term.setTextColor(COLORS.error)
- term.write("Failed to delete: " .. file)
- term.setTextColor(COLORS.text)
- sleep(0.5)
- end
- -- Small visual delay
- sleep(0.05)
- end
- end
- term.setCursorPos(2, 6)
- term.setTextColor(COLORS.success)
- term.write("Deleted " .. deletedCount .. " files/directories")
- term.setTextColor(COLORS.text)
- term.setCursorPos(2, 8)
- term.write("System cleaned. Installing fresh...")
- sleep(1)
- end
- local function installFiles(files, installType, mode)
- local total = #files
- local completed = 0
- local skipped = 0
- local updated = 0
- local errors = {}
- -- Clean install removes everything first
- if mode == INSTALL_MODE.CLEAN then
- cleanInstall(installType)
- end
- for _, file in ipairs(files) do
- completed = completed + 1
- local percent = (completed / total) * 100
- -- Extract filename for display
- local displayName = file:match("([^/]+)$") or file
- -- Skip ignored files
- if IGNORE_LIST[displayName] then
- skipped = skipped + 1
- else
- -- Determine local path (remove "storage/" or "turtle/" prefix)
- local localPath = file
- if installType == "Storage Computer" then
- localPath = file:gsub("^storage/", "")
- else
- localPath = file:gsub("^turtle/", "")
- end
- -- Show current file being processed
- local statusMsg = "Downloading: " .. displayName
- if mode == INSTALL_MODE.UPDATE then
- statusMsg = "Checking: " .. displayName
- end
- local success, err, wasSkipped = downloadFile(file, localPath, mode)
- if not success then
- table.insert(errors, err)
- showProgress("Installing " .. installType, "ERROR: " .. displayName, percent, COLORS.error)
- elseif wasSkipped then
- skipped = skipped + 1
- showProgress("Installing " .. installType, "Skipped (unchanged): " .. displayName, percent, COLORS.skip)
- else
- updated = updated + 1
- showProgress("Installing " .. installType, "Updated: " .. displayName, percent, COLORS.success)
- end
- end
- sleep(0.05) -- Small delay for visual feedback
- end
- return #errors == 0, errors, {
- total = total,
- updated = updated,
- skipped = skipped,
- errors = #errors
- }
- end
- -- Main Installation Flow
- local function detectSystemType()
- if turtle then
- return "turtle"
- else
- return "computer"
- end
- end
- local function confirmInstall(systemType, selection, mode)
- clearScreen()
- drawHeader("Confirm Installation")
- local w, h = term.getSize()
- local y = 4
- term.setCursorPos(2, y)
- term.write("Installation Summary:")
- y = y + 2
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.info)
- term.write("System Type: " .. selection)
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write("Device Type: " .. (systemType == "turtle" and "Turtle" or "Computer"))
- y = y + 1
- term.setCursorPos(2, y)
- term.write("Install Mode: " .. (mode == INSTALL_MODE.UPDATE and "Update" or "Clean Install"))
- y = y + 2
- if mode == INSTALL_MODE.UPDATE then
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.info)
- term.write("Update will:")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Preserve logs and configurations")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Skip unchanged files")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Create backups of modified files")
- y = y + 2
- else
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.warning)
- term.write("CLEAN INSTALL WILL:")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.error)
- term.write("- DELETE EVERYTHING except ROM & installer")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Remove ALL logs, configs, and programs")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Perform complete fresh installation")
- y = y + 2
- end
- if selection == "Storage Computer" and systemType == "turtle" then
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.warning)
- term.write("WARNING: Installing storage system on a turtle!")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write("This system is designed for computers.")
- y = y + 2
- elseif selection == "Crafting Turtle" and systemType == "computer" then
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.warning)
- term.write("WARNING: Installing turtle system on a computer!")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write("This system is designed for turtles.")
- y = y + 2
- end
- term.setCursorPos(2, y)
- term.write("Press ENTER to continue or Q to cancel")
- while true do
- local event, key = os.pullEvent("key")
- if key == keys.enter then
- return true
- elseif key == keys.q then
- return false
- end
- end
- end
- local function showSplash()
- clearScreen()
- local w, h = term.getSize()
- local logo = {
- " _ __ ____ ____ _ _ ",
- " | |/ // ___) ___) |_| \\",
- "| ( \\__ \\__ \\| |=| |",
- "|_|\\_\\(___/(___/|_| |_|",
- "KSSH Installer v" .. VERSION
- }
- local startY = math.floor((h - #logo) / 2)
- for i, line in ipairs(logo) do
- local x = math.floor((w - #line) / 2) + 1
- term.setCursorPos(x, startY + i)
- if i <= 4 then
- term.setTextColor(COLORS.info)
- else
- term.setTextColor(COLORS.text)
- end
- term.write(line)
- end
- term.setTextColor(COLORS.text)
- term.setCursorPos(math.floor((w - 23) / 2), h - 2)
- term.write("Press any key to continue")
- os.pullEvent("key")
- end
- local function showComplete(selection, hasStartup, stats, mode)
- clearScreen()
- drawHeader("Installation Complete!")
- local w, h = term.getSize()
- local y = 4
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.success)
- term.write("Successfully installed: " .. selection)
- term.setTextColor(COLORS.text)
- y = y + 2
- -- Show statistics for update mode
- if mode == INSTALL_MODE.UPDATE and stats then
- term.setCursorPos(2, y)
- term.write("Update Statistics:")
- y = y + 1
- term.setCursorPos(2, y)
- term.write(string.format("- Files checked: %d", stats.total))
- y = y + 1
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.success)
- term.write(string.format("- Files updated: %d", stats.updated))
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.skip)
- term.write(string.format("- Files skipped (unchanged): %d", stats.skipped))
- term.setTextColor(COLORS.text)
- y = y + 2
- end
- term.setCursorPos(2, y)
- term.write("Installation Summary:")
- y = y + 2
- if hasStartup then
- term.setCursorPos(2, y)
- term.write("- Startup script installed")
- y = y + 1
- term.setCursorPos(2, y)
- term.write(" The system will auto-start on reboot")
- y = y + 2
- end
- term.setCursorPos(2, y)
- term.write("To start the system:")
- y = y + 1
- if selection == "Storage Computer" then
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.info)
- term.write(" Run: main")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write(" or reboot the computer")
- else
- term.setCursorPos(2, y)
- term.setTextColor(COLORS.info)
- term.write(" Run: main")
- term.setTextColor(COLORS.text)
- y = y + 1
- term.setCursorPos(2, y)
- term.write(" or reboot the turtle")
- end
- y = y + 2
- term.setCursorPos(2, y)
- term.write("Configuration:")
- y = y + 1
- if selection == "Storage Computer" then
- term.setCursorPos(2, y)
- term.write("- Connect chests via wired modem")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Regular chest = input")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Trapped chest = output")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- All others = storage")
- else
- term.setCursorPos(2, y)
- term.write("- Connect wireless modem")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Place chest in front for buffer")
- y = y + 1
- term.setCursorPos(2, y)
- term.write("- Use recipe learning system")
- end
- term.setCursorPos(2, h - 1)
- term.write("Press any key to exit")
- os.pullEvent("key")
- end
- -- Main Program
- local function main()
- -- Show splash screen
- showSplash()
- -- Detect system type
- local systemType = detectSystemType()
- -- Check for existing installation
- local existingInstall = detectExistingInstallation()
- local installMode = INSTALL_MODE.CLEAN
- if existingInstall then
- -- Prompt for update vs clean install
- installMode = promptInstallMode()
- if not installMode then
- clearScreen()
- print("Installation cancelled.")
- return
- end
- end
- -- Present options
- local options = {
- "Storage Computer",
- "Crafting Turtle",
- "Cancel"
- }
- local descriptions = {
- "Main storage management system with inventory, sorting, and order processing",
- "Turtle-based crafting system with recipe learning and remote control",
- "Exit installer without making changes"
- }
- local selection = pickFromList("KSSH Installer - Select System Type", options, descriptions)
- if not selection or selection == 3 then
- clearScreen()
- print("Installation cancelled.")
- return
- end
- local selectedType = options[selection]
- -- Confirm installation
- if not confirmInstall(systemType, selectedType, installMode) then
- clearScreen()
- print("Installation cancelled.")
- return
- end
- -- Perform installation
- local files
- if selectedType == "Storage Computer" then
- files = getStorageFiles()
- else
- files = getTurtleFiles()
- end
- local success, errors, stats = installFiles(files, selectedType, installMode)
- if not success then
- clearScreen()
- term.setTextColor(COLORS.error)
- print("Installation failed with errors:")
- term.setTextColor(COLORS.text)
- for _, err in ipairs(errors) do
- print(" - " .. err)
- end
- print("\nPress any key to exit")
- os.pullEvent("key")
- return
- end
- -- Check for startup file
- local hasStartup = false
- if selectedType == "Storage Computer" then
- hasStartup = fs.exists("startup.lua")
- else
- hasStartup = fs.exists("startup.lua")
- end
- -- Show completion screen
- showComplete(selectedType, hasStartup, stats, installMode)
- -- Set computer label if not set
- if not os.getComputerLabel() then
- if selectedType == "Storage Computer" then
- os.setComputerLabel("KSSH_Storage_" .. os.getComputerID())
- else
- os.setComputerLabel("KSSH_Turtle_" .. os.getComputerID())
- end
- end
- -- Final prompt for auto-start
- clearScreen()
- drawHeader("Installation Complete!")
- local w, h = term.getSize()
- term.setCursorPos(2, 4)
- term.setTextColor(COLORS.success)
- print("KSSH Storage System installed successfully!")
- term.setTextColor(COLORS.text)
- if hasStartup then
- term.setCursorPos(2, 6)
- print("Would you like to start the system now?")
- term.setCursorPos(2, 8)
- term.setTextColor(COLORS.info)
- print("[Y] Yes - Run startup script")
- print("[N] No - Exit to shell")
- print("[R] Reboot computer")
- term.setTextColor(COLORS.text)
- while true do
- local event, key = os.pullEvent("key")
- if key == keys.y then
- clearScreen()
- term.setCursorPos(1, 1)
- print("Starting KSSH Storage System...")
- sleep(0.5)
- shell.run("startup")
- return
- elseif key == keys.n then
- clearScreen()
- term.setCursorPos(1, 1)
- print("Installation complete!")
- print("Run 'startup' to start the system.")
- return
- elseif key == keys.r then
- clearScreen()
- term.setCursorPos(1, 1)
- print("Rebooting...")
- sleep(0.5)
- os.reboot()
- end
- end
- else
- term.setCursorPos(2, 6)
- print("Run 'main' to start the system")
- term.setCursorPos(2, 8)
- print("Press any key to exit to shell...")
- os.pullEvent("key")
- clearScreen()
- term.setCursorPos(1, 1)
- end
- end
- -- Run the installer
- main()
Advertisement
Add Comment
Please, Sign In to add comment