Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawjobs = function(start)
- term.clear()
- for i=1, 19 do
- term.setCursorPos(1, i)
- term.write(start+i)
- end
- end
- p=0
- while true do
- local event, scrollDirection, x, y = os.pullEvent("mouse_scroll")
- p = p+scrollDirection
- term.setCursorPos(1, 5)
- term.write(tostring(i))
- drawjobs(p)
- end
Advertisement
Add Comment
Please, Sign In to add comment