Update os.py
This commit is contained in:
parent
e07ce515f7
commit
53a2d662a1
8
os.py
8
os.py
|
@ -1,20 +1,24 @@
|
||||||
|
import os
|
||||||
|
print("[OS] Started up the kernel")
|
||||||
print("[AutoLogin] Logged into user root")
|
print("[AutoLogin] Logged into user root")
|
||||||
def hello():
|
def hello():
|
||||||
print("Hello! You've activated the hello command.")
|
print("Hello! You've activated the hello command.")
|
||||||
|
|
||||||
def help_command():
|
def help_command():
|
||||||
print("This is the help command. Use --help for assistance.")
|
print("This is the help command. Use --help for assistance.")
|
||||||
|
def bash_command():
|
||||||
|
os.system("bash")
|
||||||
def custom_terminal():
|
def custom_terminal():
|
||||||
commands = {
|
commands = {
|
||||||
"hello": hello,
|
"hello": hello,
|
||||||
"help": help_command,
|
"help": help_command,
|
||||||
|
"bash": bash_command
|
||||||
}
|
}
|
||||||
|
|
||||||
print("Welcome to your custom terminal! Type 'exit' to quit.")
|
print("Welcome to your custom terminal! Type 'exit' to quit.")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
command = input("$ ").strip()
|
command = input("root@python $").strip()
|
||||||
|
|
||||||
if command == "exit":
|
if command == "exit":
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue