event, button, x, y = os.pullEvent("mouse_click")
if y == 18 then
--do stuff
end
Since os.pullevent() calls coroutine.yeild(), how would I have 2 functions, one of them using the mouse click event, run at the same time?
EDIT: The other function would be read() [For a login screen with shutdown and restart buttons]
Making an OS called CraftedOS which I would like to use this help for












