Update os.py

This commit is contained in:
heckeralt 2024-10-06 18:19:52 -04:00
parent e07ce515f7
commit 53a2d662a1
1 changed files with 7 additions and 3 deletions

8
os.py
View File

@ -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