superkh

test program

Dec 25th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. rng= true
  2. term.setCursorPos(1,1)
  3. while rng do
  4.   local arg = { os.pullEvent() }
  5.   if arg[1]=="mouse_click" then
  6.     print(arg[2]," ",arg[3]," ",arg[4])
  7.   elseif arg[1]=="key" then
  8.     if arg[2]==16 then
  9.       rng = false
  10.     end
  11.     print(arg[1], " ", arg[2])
  12.   end
  13. end
Add Comment
Please, Sign In to add comment