-
Notifications
You must be signed in to change notification settings - Fork 1
/
display.py
51 lines (39 loc) · 1.38 KB
/
display.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
def banner():
#banner start up of application
print("--------------------------------------")
print(" _ _ _ _ ")
print(" | |_ ___| |_ _ __ _ _ _ __ _(_) |")
print(" | ' \/ _ \ | || | / _` | '_/ _` | | |")
print(" |_||_\___/_|\_, | \__, |_| \__,_|_|_|")
print(" |__/ |___/ ")
print("--------------------------------------")
print(" ")
print(" Enter 'ls' to get going")
def sep():
#seperator
print(" ")
def commands():
#various commands
print("Commands:")
print("---------")
print("1. greeks install - Installer designed for my system")
print("2. auto setup - Your installer ")
print("3. clear - clear terminal ")
sep()
print("Enter 'exit' to close program ")
def clear():
#clear terminal
os.system("clear")
def reboot_menu():
#reboot menu between cycles
print("Please reboot system and rerun scripts!")
reboot = input("reboot now? (y/n): ")
if reboot == 'y' or reboot == 'yes':
os.system("sudo shutdown -r now")
elif reboot == 'n' or reboot == 'no':
print("you gotta remember then!")
quit()
else:
print("Invalid option")
reboot_menu()