os.pullEvent = os.pullEventRaw

sleep(0.1)
term.setCursorPos(10,4)
term.setTextColor(colors.white)
term.setBackgroundColor(colors.blue)
write(" Taschenrechner ")
term.setBackgroundColor(colors.red)
write("X")
term.setBackgroundColor(256)
term.setTextColor(colors.white)
term.setCursorPos(10,5)
print("                 ")
term.setCursorPos(10,6)
print(" ")
term.setBackgroundColor(128)
term.setCursorPos(11,6)
write("               ")
term.setBackgroundColor(256)
write(" ")
term.setCursorPos(10,7)
print("                 ")
term.setCursorPos(10,8)
write(" ")
term.setBackgroundColor(128)
write(" + ")
term.setBackgroundColor(256)
write(" ")
term.setBackgroundColor(128)
write(" - ")
term.setBackgroundColor(256)
write(" ")
term.setBackgroundColor(128)
write(" : ")
term.setBackgroundColor(256)
write(" ")
term.setBackgroundColor(128)
write(" * ")
term.setBackgroundColor(256)
write(" ")
term.setBackgroundColor(256)

term.setCursorPos(10,9)
print("                 ")




term.setCursorPos(1,2)
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)




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

if XY == "10,19" and button == 1 then
shell.run("/Laby/Start")
break
end

if XY == "3,19" and button == 1 then
shell.run("/Laby/Start")
break
end

if XY == "4,19" and button == 1 then
shell.run("/Laby/Start")
break
end

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

if XY == "26,4" and button == 1 then
term.setTextColor(colors.white)
shell.run("/Laby/Gast")
break
end




term.setBackgroundColor(128)
term.setTextColor(colors.white)
if XY == "12,8" and button == 1 then
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
p1=read()
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
write("")
p2=read()
ergebnis=p1 + p2
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
print(ergebnis)
term.setCursorPos(12,6)
break
end






term.setBackgroundColor(128)
term.setTextColor(colors.white)
if XY == "16,8" and button == 1 then
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
p1=read()
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
write("")
p2=read()
ergebnis=p1 - p2
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
print(ergebnis)
term.setCursorPos(12,6)
break
end







term.setBackgroundColor(128)
term.setTextColor(colors.white)
if XY == "20,8" and button == 1 then
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
p1=read()
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
write("")
p2=read()
ergebnis=p1 / p2
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
print(ergebnis)
term.setCursorPos(12,6)
break
end






term.setBackgroundColor(128)
term.setTextColor(colors.white)
if XY == "24,8" and button == 1 then
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
p1=read()
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
write("")
p2=read()
ergebnis=p1 * p2
term.setCursorPos(12,6)
write("              ")
term.setCursorPos(12,6)
print(ergebnis)
term.setCursorPos(12,6)
break
end











end
end
term.setCursorPos(1,2)
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
write("")