Susceptance

Untitled

Apr 24th, 2022 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. monitor = peripheral.wrap("top")
  2. wX,wY = term.getSize()
  3. old = term.redirect(monitor)
  4. mX,mY = term.getSize()
  5.  
  6.  
  7.  
  8. function fore()
  9.     cum = window.create(old,1,1, wX,wY)
  10.     while true do
  11.         pebis = ""
  12.         pebis = pebis..os.pullEvent("char")
  13.         cum.write("*")
  14.     end
  15. end
  16.  
  17. function skin()
  18.     while true do
  19.         term.redirect(monitor)
  20.         print('skin')
  21.         sleep(0.5)
  22.     end
  23. end
  24.  
  25. parallel.waitForAll(fore,skin)
Add Comment
Please, Sign In to add comment