You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if__name__=="__main__": # Added this little thing just for the modding, this wont work if this python file is imported into your mod, see modding documentation
15
+
ifplatform.system()=="Windows": # OS Checking
16
+
print("OS check sucsessful, running EverTerm")
17
+
subprocess.Popen("cls", shell=True).communicate()
18
+
time.sleep(0.5)
19
+
else:
20
+
print("WARN: Linux and Mac support is in beta")
21
+
print("Please use at your own risk")
22
+
time.sleep(2)
23
+
print("\033c", end="")
24
+
25
+
tprint("EverTerm") # shorten this thing and remove the build date from here
26
+
27
+
28
+
29
+
whileTrue: # the main thing
30
+
cmd=input("$: ")
31
+
ifcmd=="clear": #clears screen (works)
32
+
ifplatform.system()=="Windows":
33
+
subprocess.Popen("cls", shell=True).communicate()
34
+
else: #Linux and Mac clear variant
35
+
print("\033c", end="")
36
+
ifcmd=="help": # (works)
37
+
print("EverTerm is still in early stages of development. See dev.md for the phases of development\n")
38
+
print("help: runs this command\nping: pings a website on the internet\nphasecopy:prints a phrase you type to it\nfilecopy: self explanatory\ndate: lists a date\nfilelist:lists files, what did you expect?\nclear:clears the screen\nexit: exits terminal\n") #sorry about this, im just a little lazy, i will handle this later
39
+
print("be sure to use / in the filecopy command for directories, WINDOWS ONLY")
40
+
print("\nLinux users! please use your normal path! thanks!")
41
+
42
+
ifcmd=='ping': #pings a website of your choosing (works)
ifcmd=="phrasecopy": # it copies phrases, what do you expect? (works)
52
+
copy=input("Enter phase to copy:")
53
+
print(copy)
54
+
55
+
ifcmd=="filecopy": # copies file (works)
56
+
first=input("Please enter your original folder with the file in single quotes:\n")
57
+
second=input("Enter your destination folder:\n") #you can make this a file, most preferably a directory
58
+
shutil.copy(first, second)
59
+
60
+
ifcmd=="date": #lists the date (works)
61
+
print("The date in your area is: "+time.strftime("%m/%d/%Y"))
62
+
63
+
ifcmd=='filelist': # lists files, it is in the name. (works)
64
+
file=input("Enter The Direct File Path To Read: ")
65
+
dir_list2=os.listdir(file)
66
+
print("Files and directories in '", file, "':")
67
+
print(dir_list2)
68
+
69
+
ifcmd=="exit":# exits terminal (works)
70
+
var="This is just a placeholder, just wait"
71
+
text=str(var)
72
+
print("logout at "+text)
73
+
e=open('log.txt', 'w')
74
+
e.write(text)
75
+
e.write('\n')
76
+
exit()
77
+
ifcmd=="startapp": # starts an app (works)
78
+
print("WARN: windows users use a / instead of regular slash!\n ")
79
+
app=input("Enter the FULL path of the app:\n")
80
+
subprocess.Popen(app)
81
+
82
+
ifcmd=="credits": # shows the stuff used and things (works)
83
+
print("Icon designed in Pixelorama, go to https://github.com/Orama-Interactive/Pixelorama/ for info")
84
+
print("Inspired by https://github.com/Cyber-Coding-Scripts/Terminal")
85
+
print("This product is a product of EverestWorks, please do not use for malicious intent.")
30
86
31
-
print("EverTerm Version 1.0.0122 Phase 1\n")
32
-
print("Build Date: 22/9/2022 20:13\n")
33
-
34
-
ifcmd=="help":
35
-
print("EverTerm is still in early stages of development.\nSee dev.md for the phases of development")
36
-
print("help: runs this command\nping: pings a website on the internet\nphasecopy:prints a phrase you type to it\nfilecopy: self explanatory\ndate: lists a date\n filelist:lists files, what did you expect?\nclear:clears the screen\nexit: exits terminal\n") #sorry about this, im just a little lazy, i will handle this later
37
-
print("be sure to use // in the filecopy command for directories,\n WINDOWS ONLY")
38
-
print("\nLinux users! please use your normal path! thanks!")
print("ERROR-99-11-19a: This is stated by the compiler as module, this is main file.\n Report this error to the github page at https://github.com/EverestWorks/EverTerm!")
Copy file name to clipboardExpand all lines: src/Windows/evtm.py
+19-12Lines changed: 19 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -28,18 +28,22 @@
28
28
29
29
whileTrue: # the main thing
30
30
cmd=input("$: ")
31
-
ifcmd=="clear": #clears screen
31
+
32
+
ifcmd=="ssh-cisco": # ssh for cisco routers and switches (in the making)
33
+
pass
34
+
35
+
ifcmd=="clear": #clears screen (works)
32
36
ifplatform.system()=="Windows":
33
37
subprocess.Popen("cls", shell=True).communicate()
34
38
else: #Linux and Mac clear variant
35
39
print("\033c", end="")
36
-
ifcmd=="help":
40
+
ifcmd=="help":# (works)
37
41
print("EverTerm is still in early stages of development. See dev.md for the phases of development\n")
38
42
print("help: runs this command\nping: pings a website on the internet\nphasecopy:prints a phrase you type to it\nfilecopy: self explanatory\ndate: lists a date\nfilelist:lists files, what did you expect?\nclear:clears the screen\nexit: exits terminal\n") #sorry about this, im just a little lazy, i will handle this later
39
43
print("be sure to use / in the filecopy command for directories, WINDOWS ONLY")
40
44
print("\nLinux users! please use your normal path! thanks!")
41
45
42
-
ifcmd=='ping': #pings a website of your choosing
46
+
ifcmd=='ping': #pings a website of your choosing (works)
43
47
host=input("Enter Website To Ping: ")
44
48
number=input("Enter How Many Times To Ping: ")
45
49
defping(host):
@@ -48,44 +52,47 @@ def ping(host):
48
52
returnsubprocess.call(command)
49
53
print(ping(host))
50
54
51
-
ifcmd=="phrasecopy": # it copies phrases, what do you expect?
55
+
ifcmd=="phrasecopy": # it copies phrases, what do you expect? (works)
52
56
copy=input("Enter phase to copy:")
53
57
print(copy)
54
58
55
-
ifcmd=="filecopy":
59
+
ifcmd=="filecopy":# copies file (works)
56
60
first=input("Please enter your original folder with the file in single quotes:\n")
57
61
second=input("Enter your destination folder:\n") #you can make this a file, most preferably a directory
58
62
shutil.copy(first, second)
59
63
60
-
ifcmd=="date": #lists the date
64
+
ifcmd=="date": #lists the date (works)
61
65
print("The date in your area is: "+time.strftime("%m/%d/%Y"))
62
66
63
-
ifcmd=='filelist': # lists files, it is in the name.
67
+
ifcmd=='filelist': # lists files, it is in the name. (works)
64
68
file=input("Enter The Direct File Path To Read: ")
65
69
dir_list2=os.listdir(file)
66
70
print("Files and directories in '", file, "':")
67
71
print(dir_list2)
68
72
69
-
ifcmd=="exit":#exits
73
+
ifcmd=="exit":#exits terminal (works)
70
74
var="This is just a placeholder, just wait"
71
75
text=str(var)
72
76
print("logout at "+text)
73
77
e=open('log.txt', 'w')
74
78
e.write(text)
75
79
e.write('\n')
76
80
exit()
77
-
ifcmd=="startapp": # should start an app
81
+
82
+
ifcmd=="startapp": # starts an app (works)
78
83
print("WARN: windows users use a / instead of regular slash!\n ")
79
84
app=input("Enter the FULL path of the app:\n")
80
85
subprocess.Popen(app)
81
86
82
-
ifcmd=="credits": #credits, what did you expect?
87
+
ifcmd=="credits": # shows the stuff used and things (works)
83
88
print("Icon designed in Pixelorama, go to https://github.com/Orama-Interactive/Pixelorama/ for info")
84
89
print("Inspired by https://github.com/Cyber-Coding-Scripts/Terminal")
85
90
print("This product is a product of EverestWorks, please do not use for malicious intent.")
0 commit comments