From 35e41bc9a7aecb11895f87695fcc0142358ed2a0 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 5 Mar 2019 13:00:10 -0500 Subject: Fixed a bunch of problems --- system/boot.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'system/boot.lua') diff --git a/system/boot.lua b/system/boot.lua index 4554d9e..6ba6a18 100644 --- a/system/boot.lua +++ b/system/boot.lua @@ -7,14 +7,14 @@ local desktop = "/system/desktop.lua" term.clear() term.setCursorPos(1,1) -term.write("Starting up bits-UI ".. version .."...") +print("Starting up bits-UI ".. version .."...") sleep(3) if term.isColor() then term.setTextColor(colors.green) - term.write("[OK] Advanced Computer is detected...") + print("[OK] Advanced Computer is detected...") else - term.write("[ERROR] You need a advanced computer in order to make the UI functional...") + print("[ERROR] You need a advanced computer in order to make the UI functional...") sleep(3) os.shutdown() end @@ -23,10 +23,10 @@ sleep(3) if fs.exists(desktop) then term.setTextColor(colors.green) - term.write("[OK] Desktop has been found...") + print("[OK] Desktop has been found...") else term.setTextColor(colors.red) - term.write("[ERROR] Desktop cannot be found...") + print("[ERROR] Desktop cannot be found...") sleep(3) os.shutdown() end @@ -35,29 +35,29 @@ sleep(3) if fs.exists("/home") then term.setTextColor(colors.green) - term.write("[OK] Home has been found...") + print("[OK] Home has been found...") else fs.makeDir("/home") term.setTextColor(colors.green) - term.write("[OK] Home directory has been created...") + print("[OK] Home directory has been created...") end sleep(3) if fs.exists("/system/bitUI.config") then term.setTextColor(colors.green) - term.write("[OK] Config has been found...") + print("[OK] Config has been found...") else config = io.open("/system/bitUI.config", "w") config:close() term.setTextColor(colors.blue) - term.write("[INFO] Config has not been found!") - term.write("[INFO] You will be sent to the OOBE setup...") + print("[INFO] Config has not been found!") + print("[INFO] You will be sent to the OOBE setup...") end sleep(3) term.setTextColor(colors.green) -term.write("[DONE] Boot sequence is completed...") +print("[DONE] Boot sequence is completed...") term.setTextColor(colors.white) sleep(3) shell.run(desktop) \ No newline at end of file -- cgit v1.2.3