Pokemon-Terminal/adapter/base.py
2017-07-03 16:37:03 +02:00

22 lines
605 B
Python

class TerminalAdapterInterface(object):
@staticmethod
def is_available():
"""
:return: True if the environment implies we are using this terminal.
:rtype bool
"""
raise NotImplementedError()
def set_image_file_path(self, image_file_path):
"""
Set the background image of the terminal.
:param image_file_path: Path to an image file.
:rtype str
"""
raise NotImplementedError()
def clear(self):
"""
Clear the terminal's background image.
"""
raise NotImplementedError()