Advertisement
DOGGYWOOF

Untitled

Jul 22nd, 2024 (edited)
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. -- File: Recovery
  2. -- Doggy OS System Recovery Main Menu for Pocket Computer
  3.  
  4. -- Function to clear the screen and set cursor position
  5. function clearScreen()
  6. term.clear()
  7. term.setCursorPos(1, 1)
  8. end
  9.  
  10. -- Function to display the main menu
  11. function displayMenu()
  12. clearScreen()
  13. print("Doggy OS Recovery")
  14. print("Insert device")
  15. print("Waiting...")
  16. end
  17.  
  18. -- Main function
  19. function main()
  20. displayMenu()
  21.  
  22. -- Simulate device detection
  23. -- Replace this with actual device detection logic as needed
  24. while true do
  25. -- Placeholder: simulate detection after a few seconds
  26. os.sleep(3) -- Simulate waiting time for device detection
  27. clearScreen()
  28. print("Device detected")
  29. print("Recovery start")
  30. break
  31. end
  32. end
  33.  
  34. -- Run the main function
  35. main()
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement