Advertisement
Virgilcore

RETROS BIOS

Jun 9th, 2022 (edited)
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.71 KB | None | 0 0
  1. local ID = os.getComputerID()
  2. local label = os.getComputerLabel()
  3.  
  4.  
  5. os.pullEvent = os.pullEventRaw
  6. term.clear()
  7. term.setTextColor(colors.green)
  8. term.setCursorPos(1, 1)
  9. term.write("0 KB OK")
  10. os.sleep(0.1)
  11. term.clear()
  12. term.setCursorPos(1, 1)
  13. term.write("150 KB OK")
  14. os.sleep(0.1)
  15. term.clear()
  16. term.setCursorPos(1, 1)
  17. term.write("236 KB OK")
  18. os.sleep(0.1)
  19. term.clear()
  20. term.setCursorPos(1, 1)
  21. term.write("427 KB OK")
  22. os.sleep(0.1)
  23. term.clear()
  24. term.setCursorPos(1, 1)
  25. term.write("575 KB OK")
  26. os.sleep(0.1)
  27. term.clear()
  28. term.setCursorPos(1, 1)
  29. term.write("582 KB OK")
  30. os.sleep(0.1)
  31. term.clear()
  32. term.setCursorPos(1, 1)
  33. term.write("667 KB OK")
  34. os.sleep(0.1)
  35. term.clear()
  36. term.setCursorPos(1, 1)
  37. term.write("668 KB OK")
  38. os.sleep(0.1)
  39. term.clear()
  40. term.setCursorPos(1, 1)
  41. term.write("726 KB OK")
  42. os.sleep(0.1)
  43. term.clear()
  44. term.setCursorPos(1, 1)
  45. term.write("800 KB OK")
  46. os.sleep(1)
  47. term.clear()
  48. term.setCursorPos(1, 1)
  49. term.write("RETROS BIOS version 4.02.08.00 52EE5.E7.E8")
  50. term.setCursorPos(1, 2)
  51. os.sleep(1)
  52. term.write("ID:")
  53. term.setCursorPos(4, 2)
  54. term.write(ID)
  55. term.setCursorPos(1, 3)
  56. term.write("Label:")
  57. term.setCursorPos(7, 3)
  58. term.write(label)
  59. os.sleep(1)
  60. if not fs.exists("RobcOS_ticket") then
  61.   print("CONFIG NOT CREATED. RUNNING SETUP.")
  62.   os.sleep(1)
  63.   shell.run("setup")
  64.   return
  65. end
  66.  
  67. function loginCheck()
  68.     term.setCursorPos(1, 5)
  69.     term.write("Press Any Key to continue or CTRL for TERMLINK")
  70.     local event, key = os.pullEvent("key")
  71.  
  72.     if key == keys.leftCtrl then
  73.         term.clear()
  74.         term.setCursorPos(1, 1)
  75.         shell.run("termlink")
  76.     else
  77.         term.setCursorPos(6, 6)
  78.         print("Starting RobcOS...")
  79.         os.sleep(1)
  80.         shell.run("login")
  81.     end
  82. end
  83.  
  84.  
  85. loginCheck()
  86.  
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement