Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- File: Recovery
- -- Doggy OS System Recovery Main Menu for Pocket Computer
- -- Function to clear the screen and set cursor position
- function clearScreen()
- term.clear()
- term.setCursorPos(1, 1)
- end
- -- Function to display the main menu
- function displayMenu()
- clearScreen()
- print("Doggy OS Recovery")
- print("Insert device")
- print("Waiting...")
- end
- -- Main function
- function main()
- displayMenu()
- -- Simulate device detection
- -- Replace this with actual device detection logic as needed
- while true do
- -- Placeholder: simulate detection after a few seconds
- os.sleep(3) -- Simulate waiting time for device detection
- clearScreen()
- print("Device detected")
- print("Recovery start")
- break
- end
- end
- -- Run the main function
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement