Advertisement
Alexr360

Archive Welcome

Feb 19th, 2024 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. -- Print a line of dashes for aesthetics
  2. local function lineBreak()
  3.     local width, height = term.getSize()
  4.     for i = 1, width do
  5.       io.write("-")
  6.     end
  7.     io.write("\n")
  8. end
  9. -- Function to clear the screen
  10. local function clearScreen()
  11.     term.clear()
  12.     term.setCursorPos(1, 1)
  13. end
  14.  
  15. clearScreen()
  16. -- Print the welcome message
  17. print("Welcome to Monopoly OS by Monopoly Co.")
  18. lineBreak()
  19. print("Current Time: " .. textutils.formatTime(os.time(), true))
  20. lineBreak()
  21. print("Select a program to run:")
  22. print("1. Bastion")
  23. print("2. GPS")
  24. print("3. Update")
  25. print("4. Other")
  26. lineBreak()
  27.  
  28. local choice = read()
  29.  
  30. if choice == "1" then
  31.   shell.run("Bastion")
  32. elseif choice == "2" then
  33.   shell.run("GPS")
  34. elseif choice == "3" then
  35.   shell.run("Update")
  36. end
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement