Skip to content

Commit 1badd6b

Browse files
committed
some changes
1 parent c9e448e commit 1badd6b

File tree

14 files changed

+122
-309
lines changed

14 files changed

+122
-309
lines changed

src/Linux/README.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
This is the linux code for EverTerm, compilation instructins will be in an sh file
1+
This is the linux side of the code, which should involve more linux type commends
22

33
Prerequistes:
44

5-
python
6-
pip
7-
a debian based distro or debian
8-
pyinstaller
9-
hands
10-
mouse
5+
python (depends if you have it, so sudo may be needed)
6+
pip (depends if you have it, so sudo may be needed)
7+
an arch based distro or debian
8+
pyinstaller (install with pip, no sudo needed)
9+
hands (gonna need sudo)
10+
keyboard (just get one, no sudo needed)
1111

12-
if any of these isn't present, run autoinstall.sh
12+
if any of these isn't present, please install it

src/Linux/evtm.py

Lines changed: 88 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from cmath import phase
21
from copy import copy
32
import sys
43
import os
@@ -7,81 +6,93 @@
76
import platform
87
import socket
98
import shutil
9+
from datetime import datetime
10+
import keyboard
11+
from art import *
1012

11-
if platform.system()=="Windows": # OS Checking
12-
print("OS check sucsessful, running EverTerm")
13-
subprocess.Popen("cls", shell=True).communicate()
14-
time.sleep(0.5)
15-
else:
16-
print("WARN: Linux and Mac support is in beta")
17-
print("Please use at your own risk")
18-
print("\033c", end="")
19-
20-
print("EverTerm Version 1.0.0122 Phase 1\n")
21-
print("Build Date: 22/9/2022 20:13\n")
22-
23-
while True: # the main thing
24-
cmd = input("$: ")
25-
if cmd == "clear": #clears screen
26-
if platform.system()=="Windows":
27-
subprocess.Popen("cls", shell=True).communicate()
28-
else: #Linux and Mac clear variant
29-
print("\033c", end="")
13+
14+
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+
if platform.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+
while True: # the main thing
30+
cmd = input("$: ")
31+
if cmd == "clear": #clears screen (works)
32+
if platform.system()=="Windows":
33+
subprocess.Popen("cls", shell=True).communicate()
34+
else: #Linux and Mac clear variant
35+
print("\033c", end="")
36+
if cmd == "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+
if cmd == 'ping': #pings a website of your choosing (works)
43+
host = input("Enter Website To Ping: ")
44+
number = input("Enter How Many Times To Ping: ")
45+
def ping(host):
46+
param = '-n' if platform.system().lower() == 'windows' else '-c'
47+
command = ['ping', param, number, host]
48+
return subprocess.call(command)
49+
print(ping(host))
50+
51+
if cmd == "phrasecopy": # it copies phrases, what do you expect? (works)
52+
copy = input("Enter phase to copy:")
53+
print(copy)
54+
55+
if cmd == "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+
if cmd == "date": #lists the date (works)
61+
print("The date in your area is: " + time.strftime("%m/%d/%Y"))
62+
63+
if cmd == '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+
if cmd == "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+
if cmd == "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+
if cmd == "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.")
3086

31-
print("EverTerm Version 1.0.0122 Phase 1\n")
32-
print("Build Date: 22/9/2022 20:13\n")
33-
34-
if cmd == "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!")
39-
40-
if cmd == "modlaunch":
41-
pass
42-
if cmd == "modlaunch":
43-
pass
44-
45-
if cmd == 'ping': #pings a website of your choosing
46-
host = input("Enter Website To Ping: ")
47-
number = input("Enter How Many Times To Ping: ")
48-
def ping(host):
49-
param = '-n' if platform.system().lower() == 'windows' else '-c'
50-
command = ['ping', param, number, host]
51-
return subprocess.call(command)
52-
print(ping(host))
53-
54-
if cmd == "phrasecopy": # it copies phrases, what do you expect?
55-
copy = input("Enter phase to copy:")
56-
print(copy)
57-
58-
if cmd == "filecopy":
59-
first = input("Please enter your original folder with the file in single quotes:\n")
60-
second = input("Enter your destination folder:\n") #you can make this a file, most preferably a directory
61-
shutil.copy(first, second)
62-
63-
if cmd == "date": #lists the date
64-
print("The date in your area is: " + time.strftime("%m/%d/%Y"))
65-
66-
if cmd == 'filelist': # lists files, it is in the name.
67-
file = input("Enter The Direct File Path To Read: ")
68-
dir_list2 = os.listdir(file)
69-
print("Files and directories in '", file, "':")
70-
print(dir_list2)
71-
72-
if cmd == "exit":#exits
73-
print("logout at " + time.strftime("%m/%d/%Y"))
74-
text = "logout at " + time.strftime("%m/%d/%Y")
75-
e = open('log.txt', 'w')
76-
e.write(text)
77-
e.write('\n')
78-
exit()
79-
if cmd == "startapp": # should start an app
80-
print("WARN: windows users use a \\ insteado of regular slash!\n")
81-
app = input("Enter the path of the app:\n")
82-
subprocess.Popen(app)
83-
84-
if cmd == "credits": #credits, what did you expect?
85-
print("Icon designed in Pixelorama, go to https://github.com/Orama-Interactive/Pixelorama/ for info")
86-
print("Inspired by https://github.com/Cyber-Coding-Scripts/Terminal")
87-
print("This product is a product of EverestWorks, please do not use for malicious intent.")
87+
88+
print("==============TERMINAL INFO=====================")
89+
print("EverTerm Version 1.1.233 Phase 1\n")
90+
print("Build Date: 24/11/2022 20:13\n")
91+
92+
93+
94+
95+
96+
97+
else:
98+
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!")

src/Linux/evtm.spec

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/Linux/icon.spec

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/Linux/locMouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Fetch the mouse coordinates
77
try:
88
while True:
9-
# Find and print the coordinates
9+
# Finds and print the coordinates along with RGB info
1010
x, y = pyautogui.position()
1111
positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
1212
pixelColor = pyautogui.screenshot().getpixel((x, y))

src/Linux/log.txt

Whitespace-only changes.

src/Linux/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from distutils.core import setup
22
import py2exe
3-
setup(console=['afdr.py'])
3+
setup(console=['evtm.py'])

src/Windows/evtm.py

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,22 @@
2828

2929
while True: # the main thing
3030
cmd = input("$: ")
31-
if cmd == "clear": #clears screen
31+
32+
if cmd == "ssh-cisco": # ssh for cisco routers and switches (in the making)
33+
pass
34+
35+
if cmd == "clear": #clears screen (works)
3236
if platform.system()=="Windows":
3337
subprocess.Popen("cls", shell=True).communicate()
3438
else: #Linux and Mac clear variant
3539
print("\033c", end="")
36-
if cmd == "help":
40+
if cmd == "help": # (works)
3741
print("EverTerm is still in early stages of development. See dev.md for the phases of development\n")
3842
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
3943
print("be sure to use / in the filecopy command for directories, WINDOWS ONLY")
4044
print("\nLinux users! please use your normal path! thanks!")
4145

42-
if cmd == 'ping': #pings a website of your choosing
46+
if cmd == 'ping': #pings a website of your choosing (works)
4347
host = input("Enter Website To Ping: ")
4448
number = input("Enter How Many Times To Ping: ")
4549
def ping(host):
@@ -48,44 +52,47 @@ def ping(host):
4852
return subprocess.call(command)
4953
print(ping(host))
5054

51-
if cmd == "phrasecopy": # it copies phrases, what do you expect?
55+
if cmd == "phrasecopy": # it copies phrases, what do you expect? (works)
5256
copy = input("Enter phase to copy:")
5357
print(copy)
5458

55-
if cmd == "filecopy":
59+
if cmd == "filecopy": # copies file (works)
5660
first = input("Please enter your original folder with the file in single quotes:\n")
5761
second = input("Enter your destination folder:\n") #you can make this a file, most preferably a directory
5862
shutil.copy(first, second)
5963

60-
if cmd == "date": #lists the date
64+
if cmd == "date": #lists the date (works)
6165
print("The date in your area is: " + time.strftime("%m/%d/%Y"))
6266

63-
if cmd == 'filelist': # lists files, it is in the name.
67+
if cmd == 'filelist': # lists files, it is in the name. (works)
6468
file = input("Enter The Direct File Path To Read: ")
6569
dir_list2 = os.listdir(file)
6670
print("Files and directories in '", file, "':")
6771
print(dir_list2)
6872

69-
if cmd == "exit":#exits
73+
if cmd == "exit":# exits terminal (works)
7074
var = "This is just a placeholder, just wait"
7175
text = str(var)
7276
print("logout at " + text)
7377
e = open('log.txt', 'w')
7478
e.write(text)
7579
e.write('\n')
7680
exit()
77-
if cmd == "startapp": # should start an app
81+
82+
if cmd == "startapp": # starts an app (works)
7883
print("WARN: windows users use a / instead of regular slash!\n ")
7984
app = input("Enter the FULL path of the app:\n")
8085
subprocess.Popen(app)
8186

82-
if cmd == "credits": #credits, what did you expect?
87+
if cmd == "credits": # shows the stuff used and things (works)
8388
print("Icon designed in Pixelorama, go to https://github.com/Orama-Interactive/Pixelorama/ for info")
8489
print("Inspired by https://github.com/Cyber-Coding-Scripts/Terminal")
8590
print("This product is a product of EverestWorks, please do not use for malicious intent.")
8691

87-
print("EverTerm Version 1.0.022 Phase 1\n")
88-
print("Build Date: 22/9/2022 20:13\n")
92+
93+
print("==============TERMINAL INFO=====================")
94+
print("EverTerm Version 1.1.233 Phase 1\n")
95+
print("Build Date: 24/11/2022 20:13\n")
8996

9097

9198

0 commit comments

Comments
 (0)