os.pullEvent = os.pullEventRaw
function password()
term.clear()
term.setCursorPos(1,1)
term.setTextColor(1024)
print("AppleOS V1")
term.setTextColor(1)
print("If you want to open the door, use the correct password.")
print("If you want to edit this computer, put the admin password.")
while true do
local input = read("*")
if input == "example1" then
redstone.setOutput("right", true)
sleep(3)
redstone.setOutput("right", false)
os.reboot()
elseif input == "example2" then
term.clear()
term.setCursorPos(1,1)
term.setTextColor(1024)
print("AppleOS V1")
break
else return
password()
end
end
end
password()
Quick note. In my latest version of the program (this one) I added the
else return password()part, and it apparently works now, sorry to waste the time of who ever read this,












