INNER CODE UNIT · Python
Title
loxy0devlp/RedTiger-Tools · Config/Utils.py:132
def Title(title):
if os_name == "Windows": ctypes.windll.kernel32.SetConsoleTitleW(f"{tool_name} v{tool_version} - {title}")
elif os_name == "Linux": sys.stdout.write(f"\x1b]2;{tool_name} v{tool_version} - {title}\x07")
def Clear():
if os_name == "Windows": subprocess.run("cls", shell=True)
elif os_name == "Linux": subprocess.run("clear", shell=True)
def Start():
if os_name == "Windows": subprocess.run(['python', path_file_tool])
elif os_name == "Linux": subprocess.run(['python3', path_file_tool])
def Reset():
if version_interface and not has_cli_args: Start()
else: sys.exit(0)
def Slow(text):
if not version_decorated or not version_interface or has_cli_args: print(text)