3
3
import os
4
4
import turtle
5
5
import keyboard
6
+ import subprocess
6
7
7
8
# -----FUNCTIONS
8
9
@@ -22,7 +23,10 @@ def write():
22
23
filenamed = "files/" + namethefile + ".txt"
23
24
clear ()
24
25
outfile = open (filenamed , 'a' )
25
- outfile .write (input ("Enter your text here: " ))
26
+ lines = int (input ("Enter the number of lines needed: " ))
27
+ for i in range (lines ):
28
+ outfile .write (input ("Enter your text here: " ))
29
+ outfile .write ("\n " )
26
30
outfile .close ()
27
31
print ('text successfully written to' + str (filenamed ))
28
32
@@ -74,6 +78,10 @@ def calculatoring(oper, x, y):
74
78
time .sleep (1 )
75
79
calc ()
76
80
81
+ def systemaccess ():
82
+ cmd = input ("(" + os .name + ")cmd:" )
83
+ os .system (cmd )
84
+ filler = input ('Enter To Continue. . .' )
77
85
78
86
def calc ():
79
87
# the worst calculator ever
@@ -95,16 +103,13 @@ def calc():
95
103
def checkid ():
96
104
clear ()
97
105
print ("""
98
-
99
- _______ __ __ ___ _______ ______ _______ __ _
100
- | || |_| || | | || _ | | || | | |
101
- | _ || || | | || | || | _ || |_| |
102
- | | | || || | | || |_| \ | | | || |
103
- | |_| || || | | _|| __ || |_| || _ |
104
- | || ||_|| || | | |_ | | | || || | | |
105
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
106
-
107
-
106
+ ██████╗ ███╗ ███╗██╗ ██████╗██████╗ ██████╗ ███╗ ██╗ ██████╗ ███████╗
107
+ ██╔═══██╗████╗ ████║██║██╔════╝██╔══██╗██╔═══██╗████╗ ██║██╔═══██╗██╔════╝
108
+ ██║ ██║██╔████╔██║██║██║ ██████╔╝██║ ██║██╔██╗ ██║██║ ██║███████╗
109
+ ██║ ██║██║╚██╔╝██║██║██║ ██╔══██╗██║ ██║██║╚██╗██║██║ ██║╚════██║
110
+ ╚██████╔╝██║ ╚═╝ ██║██║╚██████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╔╝███████║
111
+ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
112
+
108
113
""" )
109
114
# numeric id check the program runs on startup
110
115
id = input ("enter your six-digit numeric id: " )
@@ -125,30 +130,41 @@ def runprogram():
125
130
# where the main filesystem browser goes. holds the executions for all the programs
126
131
clear ()
127
132
print ("""
128
-
129
- _______ __ __ ___ _______ ______ _______ __ _
130
- | || |_| || | | || _ | | || | | |
131
- | _ || || | | || | || | _ || |_| |
132
- | | | || || | | || |_||_ | | | || |
133
- | |_| || || | | _|| __ || |_| || _ |
134
- | || ||_|| || | | |_ | | | || || | | |
135
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
136
-
137
-
133
+ ██████╗ ███╗ ███╗██╗ ██████╗██████╗ ██████╗ ███╗ ██╗ ██████╗ ███████╗
134
+ ██╔═══██╗████╗ ████║██║██╔════╝██╔══██╗██╔═══██╗████╗ ██║██╔═══██╗██╔════╝
135
+ ██║ ██║██╔████╔██║██║██║ ██████╔╝██║ ██║██╔██╗ ██║██║ ██║███████╗
136
+ ██║ ██║██║╚██╔╝██║██║██║ ██╔══██╗██║ ██║██║╚██╗██║██║ ██║╚════██║
137
+ ╚██████╔╝██║ ╚═╝ ██║██║╚██████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╔╝███████║
138
+ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
139
+
138
140
""" )
139
- print ("""
141
+ print ("""omicronOSv0.2.1
142
+ managed by L.Kaminski, 2023
143
+
144
+ Type 'help' for a list of commands.""" )
145
+ command = input ("OMI:> " )
146
+ # MAKE ABSOLUTE SURE THAT THE = are DOUBLED, like this: ==. otherwise it won't work
147
+ if command == "calc" :
148
+ calc ()
149
+ clear ()
150
+ runprogram ()
151
+ elif command == "help" :
152
+ print ("""
140
153
calc - Runs basic calculator with addition, subtraction, multiplication and division.
141
154
tencheck - Runs basic check for if a number is over ten, good for checking language version validity
142
155
write - Write to a new or existing text file.
143
156
read - Read from an existing text file.
144
- turtle - a small Python turtle demo.
157
+ omizone - Activate the omiZone, a 3D interactive space within omicronOS
158
+ sysacc - run a single system command on your operating system's default CMD.
145
159
logout - Log out of the current user profile
146
- shutdown - Shut down the machine.
160
+ exit - Shut down the machine.
147
161
""" )
148
- command = input ("OMI:> " )
149
- # MAKE ABSOLUTE SURE THAT THE = are DOUBLED, like this: ==. otherwise it won't work
150
- if command == "calc" :
151
- calc ()
162
+ moarfiller = input ("Enter to Continue. . ." )
163
+ clear ()
164
+ runprogram ()
165
+ elif command == "sysacc" :
166
+ clear ()
167
+ systemaccess ()
152
168
clear ()
153
169
runprogram ()
154
170
elif command == "tencheck" :
@@ -163,12 +179,15 @@ def runprogram():
163
179
elif command == "read" :
164
180
read ()
165
181
runprogram ()
166
- elif command == "turtle " :
167
- turtlePower ( )
182
+ elif command == "omizone " :
183
+ subprocess . run ([ "python" , r"C:\Users\alota\OneDrive\Documents\OmicronOS-main\omizone.py" ] )
168
184
clear ()
169
185
runprogram ()
170
- elif command == "shutdown" :
171
- print ("Closing Dobel Filesystem..." )
186
+ elif command == "exit" :
187
+ clear ()
188
+ print ("Closing OmicronOS Runtime. . ." )
189
+ time .sleep (0.2 )
190
+ print ("Checking Save Validity. . ." )
172
191
time .sleep (1 )
173
192
print ("Shutting Down..." )
174
193
time .sleep (0.5 )
@@ -178,16 +197,13 @@ def runprogram():
178
197
time .sleep (1 )
179
198
clear ()
180
199
print ("""
181
-
182
- _______ __ __ ___ _______ ______ _______ __ _
183
- | || |_| || | | || _ | | || | | |
184
- | _ || || | | || | || | _ || |_| |
185
- | | | || || | | || |_||_ | | | || |
186
- | |_| || || | | _|| __ || |_| || _ |
187
- | || ||_|| || | | |_ | | | || || | | |
188
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
189
-
190
-
200
+ ██████╗ ███╗ ███╗██╗ ██████╗██████╗ ██████╗ ███╗ ██╗ ██████╗ ███████╗
201
+ ██╔═══██╗████╗ ████║██║██╔════╝██╔══██╗██╔═══██╗████╗ ██║██╔═══██╗██╔════╝
202
+ ██║ ██║██╔████╔██║██║██║ ██████╔╝██║ ██║██╔██╗ ██║██║ ██║███████╗
203
+ ██║ ██║██║╚██╔╝██║██║██║ ██╔══██╗██║ ██║██║╚██╗██║██║ ██║╚════██║
204
+ ╚██████╔╝██║ ╚═╝ ██║██║╚██████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╔╝███████║
205
+ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
206
+
191
207
""" )
192
208
checkid ()
193
209
else :
@@ -196,55 +212,42 @@ def runprogram():
196
212
runprogram ()
197
213
198
214
215
+
216
+
217
+
218
+
219
+
220
+
199
221
def loadasset ():
200
222
# flashy loading screen
201
223
clear ()
202
224
print ("""
203
-
204
- _______ __ __ ___ _______ ______ _______ __ _
205
- | || |_| || | | || _ | | || | | |
206
- | _ || || | | || | || | _ || |_| |
207
- | | | || || | | || |_||_ | | | || |
208
- | |_| || || | | _|| __ || |_| || _ |
209
- | || ||_|| || | | |_ | | | || || | | |
210
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
211
-
212
-
225
+ ██████╗ ███╗ ███╗██╗ ██████╗██████╗ ██████╗ ███╗ ██╗ ██████╗ ███████╗
226
+ ██╔═══██╗████╗ ████║██║██╔════╝██╔══██╗██╔═══██╗████╗ ██║██╔═══██╗██╔════╝
227
+ ██║ ██║██╔████╔██║██║██║ ██████╔╝██║ ██║██╔██╗ ██║██║ ██║███████╗
228
+ ██║ ██║██║╚██╔╝██║██║██║ ██╔══██╗██║ ██║██║╚██╗██║██║ ██║╚════██║
229
+ ╚██████╔╝██║ ╚═╝ ██║██║╚██████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╔╝███████║
230
+ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
231
+
213
232
""" )
214
233
print ("Welcome to OMICRON" )
215
- time .sleep (2 )
216
234
print ("Loading Assets..." )
217
235
time .sleep (1 )
218
236
var = 0
219
237
while var < 101 :
220
- print ("""
221
-
222
- _______ __ __ ___ _______ ______ _______ __ _
223
- | || |_| || | | || _ | | || | | |
224
- | _ || || | | || | || | _ || |_| |
225
- | | | || || | | || |_||_ | | | || |
226
- | |_| || || | | _|| __ || |_| || _ |
227
- | || ||_|| || | | |_ | | | || || | | |
228
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
229
-
230
-
231
- """ )
232
- print (str (var ) + "% Loaded" )
233
- time .sleep (0.05 )
238
+ print (str (var ) + "% Loaded \r " ),
239
+ time .sleep (0.01 )
234
240
var += 1
235
241
clear ()
236
242
# i have to give some sort of visual fun to my eyeballs, python is already slow as balls let me have some fun
237
243
print ("""
238
-
239
- _______ __ __ ___ _______ ______ _______ __ _
240
- | || |_| || | | || _ | | || | | |
241
- | _ || || | | || | || | _ || |_| |
242
- | | | || || | | || |_||_ | | | || |
243
- | |_| || || | | _|| __ || |_| || _ |
244
- | || ||_|| || | | |_ | | | || || | | |
245
- |_______||_| |_||___| |_______||___| |_||_______||_| |__|
246
-
247
-
244
+ ██████╗ ███╗ ███╗██╗ ██████╗██████╗ ██████╗ ███╗ ██╗ ██████╗ ███████╗
245
+ ██╔═══██╗████╗ ████║██║██╔════╝██╔══██╗██╔═══██╗████╗ ██║██╔═══██╗██╔════╝
246
+ ██║ ██║██╔████╔██║██║██║ ██████╔╝██║ ██║██╔██╗ ██║██║ ██║███████╗
247
+ ██║ ██║██║╚██╔╝██║██║██║ ██╔══██╗██║ ██║██║╚██╗██║██║ ██║╚════██║
248
+ ╚██████╔╝██║ ╚═╝ ██║██║╚██████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╔╝███████║
249
+ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
250
+
248
251
""" )
249
252
print ("Assets Loaded." )
250
253
# i want a fullscreen function here someone figure that out please
@@ -270,23 +273,6 @@ def tencheck():
270
273
print ("exactly 10" )
271
274
time .sleep (1.5 )
272
275
runprogram ()
276
+ # don't run any other functions here
273
277
274
-
275
- def turtlePower ():
276
- clear ()
277
- win = turtle .Screen ()
278
- man = turtle .Turtle ()
279
- man .penup ()
280
- while True :
281
- if keyboard .is_pressed ("w" ):
282
- man .forward (2 )
283
- if keyboard .is_pressed ("a" ):
284
- man .left (2 )
285
- if keyboard .is_pressed ("s" ):
286
- man .backward (2 )
287
- if keyboard .is_pressed ("d" ):
288
- man .right (2 )
289
- if keyboard .is_pressed ("e" ):
290
- win .bye ()
291
- break
292
- # don't run any other functions here
278
+ #VARIABLES
0 commit comments