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,6)
term.setBackgroundColor(colors.red)
print("  Herunterfahren?   X")
term.setBackgroundColor(2048)
term.setCursorPos(15,7)
print("                     ")
term.setCursorPos(15,8)
print("      X  Ja          ")
term.setCursorPos(15,9)
print("      X  Nein        ")
term.setCursorPos(15,10)
print("                     ")
term.setBackgroundColor(512)


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

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


if XY == "21,8" and button == 1 then
term.clear()
print("                 Shutting down...")
sleep(2)
os.shutdown()
break
end

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