This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
FREAX/usr/demos/winsetup

36 lines
1.2 KiB
Text
Raw Normal View History

2022-07-18 19:33:40 +02:00
local function annotateLoading(txt, array, delay)
for _, v in ipairs(array) do
kerneldraw.printColoredTextLine(18, txt.." "..v)
sleep(delay or 1.5)
end
end
local setupLines = {}
setupLines.stageOne = {"<HDD IDE/SATA drivers>", "<Floppy disk support>", "<LAN network drivers>", "<CPU controller>", "<Windows Setup files>"}
kerneldraw.clearScreen(colors.blue)
term.setCursorPos(1, 2)
print("Windows Setup")
print("==================")
kerneldraw.printColoredTextLine(18, "Windows Setup is checking hardware requirements...")
sleep(3)
annotateLoading("Loading files", setupLines.stageOne, 1.25)
kerneldraw.clearScreen(colors.blue)
term.setCursorPos(1, 2)
print("Windows Setup")
print("==================")
term.setCursorPos(2, 5)
print("Setup is formatting drive C:...")
term.setCursorPos(4, 7)
print("File system: NTFS")
term.setCursorPos(4, 8)
print("Free space: "..fs.getFreeSpace("/").." bytes")
kerneldraw.drawProgressAlt()
sleep(2.5)
kerneldraw.clearScreen(colors.blue)
term.setCursorPos(1, 2)
print("Windows Setup")
print("==================")
term.setCursorPos(2, 5)
print("Setup is copying files...")
kerneldraw.drawProgressAlt()
sleep(5)
kerneldraw.clearScreen(colors.black)