Advertisement
Nullharp

bootup_sequence.lua

May 24th, 2022 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- Anti Termination Code
  2. local oldPull = os.pullEvent;
  3. os.pullEvent = os.pullEventRaw;
  4. -- Anti Termination Code
  5.  
  6. local temp = 11
  7. local temp2 = 3
  8. local util = require("utility")
  9. util.title("Bootup")
  10. term.setCursorPos(1,13)
  11.  
  12. while temp2 > 0 do
  13.  
  14.     while temp > 0 do
  15.         term.write("|")
  16.         temp = temp - 1
  17.         sleep(0.1)
  18.     end
  19.     temp2 = temp2 - 1
  20.     temp = 11
  21.     sleep(0.1)
  22.     term.setCursorPos(1,12)
  23.     term.clearLine()
  24. end
  25. -- Any code that needs to be ran for the bootup
  26.  
  27. util.title("Lua Terminal")
  28.  
  29. -- Anti Termination Code
  30. os.pullEvent = oldPull;
  31. -- Anti Termination Code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement