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")
|
||||
def hello():
|
||||
print("Hello! You've activated the hello command.")
|
||||
|
||||
def help_command():
|
||||
print("This is the help command. Use --help for assistance.")
|
||||
|
||||
def bash_command():
|
||||
os.system("bash")
|
||||
def custom_terminal():
|
||||
commands = {
|
||||
"hello": hello,
|
||||
"help": help_command,
|
||||
"bash": bash_command
|
||||
}
|
||||
|
||||
print("Welcome to your custom terminal! Type 'exit' to quit.")
|
||||
|
||||
while True:
|
||||
command = input("$ ").strip()
|
||||
command = input("root@python $").strip()
|
||||
|
||||
if command == "exit":
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue