Advertisement
Pirnogion

HA-HA

Mar 16th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. term.setBackgroundColor(colors.black)
  2. term.setTextColor(colors.yellow)
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. write(os.version() .. "\n> ")
  6. term.setTextColor(colors.white)
  7. term.setCursorBlink(true)
  8.  
  9. local WAIT = 10
  10.  
  11. function os.pullEvent( _sFilter )
  12.     local eventData = { os.pullEventRaw( _sFilter ) }
  13.    
  14.     if eventData[1] == "terminate" then
  15.         write("HA-HA-HA! WAIT "..WAIT.." SECONDS!!!1")
  16.         os.sleep(WAIT)
  17.         error( "LOX I PIDR!", 0 )
  18.     end
  19.  
  20.     return unpack( eventData )
  21. end
  22.  
  23. while true do
  24.     read()
  25.     term.setCursorPos(1, 1)
  26.     term.clear()
  27.     write("LOX! ")
  28.     os.sleep(2)
  29.     term.setBackgroundColor(colors.black)
  30.     term.setTextColor(colors.yellow)
  31.     term.clear()
  32.     term.setCursorPos(1, 1)
  33.     write(os.version() .. "\n> ")
  34.     term.setTextColor(colors.white)
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement