INNER CODE UNIT · Python
Input
loxy0devlp/RedTiger-Tools · Config/Utils.py:129
def Input(message):
return input(f"{BEFORE}{Hour()}{AFTER} {INPUT} {message}{reset}")
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)