Pokemon-Terminal/pokemonterminal/terminal/adapters/terminology.py

17 lines
No EOL
347 B
Python

import os
from . import TerminalProvider as _TProv
class TerminologyProvider(_TProv):
def is_compatible() -> bool:
return os.environ.get("TERMINOLOGY") == '1'
def change_terminal(path: str):
os.system('tybg "{}"'.format(path))
def clear():
os.system("tybg")
def __str__():
return "Terminology"