os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(512)
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")

term.setCursorPos(1,1)
print("LabyOS - New OS")
term.setCursorPos(28,1)
print("Programm by DanielLaby99")
term.setCursorPos(1,2)
sleep(0)
term.setBackgroundColor(colors.black)
print("                                                   ")
term.setBackgroundColor(512)

sleep(0.5)
term.setCursorPos(15,5)
term.setBackgroundColor(colors.red)
print("         Anmeldung:        X")
term.setBackgroundColor(2048)
term.setCursorPos(15,6)
print("                            ")
term.setCursorPos(15,6)
print("                            ")
term.setCursorPos(15,7)
print("     X  Anmelden            ")
term.setCursorPos(15,8)
print("     X  Registrieren        ")
term.setCursorPos(15,9)
print("                            ")
term.setCursorPos(15,10)
print("                            ")
term.setBackgroundColor(512)
term.setCursorPos(1,1)
term.setBackgroundColor(512)







while true do
local event, button, X, Y = os.pullEvent("mouse_click")
XY = X..","..Y

if XY == "42,5" and button == 1 then
shell.run("/Laby/Herunterfahren")
break
end

if XY == "20,7" and button == 1 then
shell.run("/Laby/Login")
break
end




if XY == "20,8" and button == 1 then
shell.run("/Laby/Register")
sleep(2)
break
end
end




term.setCursorPos(1,1)