Pokemon-Terminal/pokemonterminal/adapter/implementations/Terminology.py
2017-09-01 14:30:33 -03:00

15 lines
374 B
Python

import os
from pokemonterminal.adapter.base import TerminalAdapterInterface
class Terminology(TerminalAdapterInterface):
@staticmethod
def is_available():
return os.environ.get("TERMINOLOGY") == '1'
def set_image_file_path(self, image_file_path):
os.system('tybg "{}"'.format(image_file_path))
def clear(self):
os.system("tybg")