Guest User

Untitled

a guest
Jul 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. # BIT PROGRAM
  2.  
  3. # PROGRAM FOR ENTERTAINMENT AND USEFULNESS
  4.  
  5. import sys
  6. import os
  7. import time
  8.  
  9. ans = True
  10.  
  11. width = os.get_terminal_size().columns
  12.  
  13. def menu():
  14. import sys
  15. import os
  16. import time
  17.  
  18.  
  19. while ans:
  20. os.system('clear')
  21. os.system('figlet BIT'.center(width))
  22. print('0 - Exit')
  23. print('1 - Date/Time')
  24. print('2 - Calendar')
  25. print('3 - Computer Hardware')
  26. print('4 - Fortune')
  27. print('5 - Train')
  28. print('6 - Matrix')
  29. print('7 - Cowsay')
  30. print('8 - DOOM')
  31. print('9 - DOOM2')
  32. print('10- Python')
  33. print('11- Joe')
  34. print('12- Nano')
  35. print('13- Terminal')
  36. print('')
  37. pick = input("Choose your destiny: ")
  38.  
  39. if pick == "0":
  40. os.system('quit')
  41. elif pick == "1":
  42. os.system('date')
  43. time.sleep(7)
  44. elif pick == "2":
  45. os.system('calendar')
  46. time.sleep(7)
  47. elif pick == "3":
  48. os.system('lscpu')
  49. time.sleep(7)
  50. elif pick == "4":
  51. os.system('fortune')
  52. time.sleep(7)
  53. elif pick == "5":
  54. os.system('sl')
  55. time.sleep(7)
  56. elif pick == "6":
  57. os.system('cmatrix')
  58. time.sleep(7)
  59. elif pick == "7":
  60. os.system('cowsay muuu!')
  61. time.sleep(7)
  62. elif pick == "8":
  63. os.system('/home/junior/doom.sh')
  64. elif pick == "9":
  65. os.system('/home/junior/doom2.sh')
  66. elif pick == "10":
  67. os.system('python3')
  68. elif pick == "11":
  69. os.system('joe')
  70. elif pick == "12":
  71. os.system('nano')
  72. elif pick == "13":
  73. os.system('terminal')
  74. menu()
Add Comment
Please, Sign In to add comment