Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.yellow)
- term.clear()
- term.setCursorPos(1, 1)
- write(os.version() .. "\n> ")
- term.setTextColor(colors.white)
- term.setCursorBlink(true)
- local WAIT = 10
- function os.pullEvent( _sFilter )
- local eventData = { os.pullEventRaw( _sFilter ) }
- if eventData[1] == "terminate" then
- write("HA-HA-HA! WAIT "..WAIT.." SECONDS!!!1")
- os.sleep(WAIT)
- error( "LOX I PIDR!", 0 )
- end
- return unpack( eventData )
- end
- while true do
- read()
- term.setCursorPos(1, 1)
- term.clear()
- write("LOX! ")
- os.sleep(2)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.yellow)
- term.clear()
- term.setCursorPos(1, 1)
- write(os.version() .. "\n> ")
- term.setTextColor(colors.white)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement