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 --- startup | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'startup') diff --git a/startup b/startup index a1efcd0..9fdd238 100644 --- a/startup +++ b/startup @@ -3,13 +3,13 @@ local boot = "/system/boot.lua" function bootloader() term.setCursorPos(1,1) - term.write("Welcome to the BUBL boot loader!\n") + print("Welcome to the BUBL boot loader!\n") term.setCursorPos(1,3) - term.write("1. Boot bits-UI\n") + print("1. Boot bits-UI\n") term.setCursorPos(1,4) - term.write("2. Update bits-UI\n") + print("2. Update bits-UI\n") term.setCursorPos(1,5) - term.write("3. Boot CraftOS\n") + print("3. Boot CraftOS\n") term.setCursorPos(1,7) term.write("> ") end @@ -28,15 +28,15 @@ function bootloaderInput() shell.run("/system/boot.lua") elseif input == "2" then clear() - term.write("Running updater...") + print("Running updater...") sleep(3) shell.run("pastebin", "run", "7XY80hfG") elseif input == "3" then clear() - term.write(os.version()) + print(os.version()) term.setCursorPos(1,2) else - term.write("[ERROR] Invalid number.") + print("[ERROR] Invalid number.") bootloader() bootloaderInput() end @@ -46,13 +46,13 @@ end if fs.exists(boot) then term.setTextColor(colors.green) - term.write("Boot detected!") + print("Boot detected!") else clear() term.setTextColor(colors.red) - term.write("[ERROR] System has been halted.") + print("[ERROR] System has been halted.") term.setCursorPos(1,2) - term.write("Details: Cannot find boot.lua") + print("Details: Cannot find boot.lua") sleep(3) os.shutdown() end -- cgit v1.2.3