2017-06-21 11:49:16 +00:00
|
|
|
class TerminalAdapterInterface(object):
|
2017-06-21 16:30:28 +00:00
|
|
|
@staticmethod
|
|
|
|
def is_available():
|
|
|
|
"""
|
|
|
|
:return: True if the environment implies we are using this terminal.
|
|
|
|
:rtype bool
|
|
|
|
"""
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
2017-07-03 14:37:03 +00:00
|
|
|
def set_image_file_path(self, image_file_path):
|
2017-06-21 16:30:28 +00:00
|
|
|
"""
|
|
|
|
Set the background image of the terminal.
|
2017-07-03 14:37:03 +00:00
|
|
|
:param image_file_path: Path to an image file.
|
|
|
|
:rtype str
|
2017-06-21 16:30:28 +00:00
|
|
|
"""
|
2017-06-21 11:49:16 +00:00
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
def clear(self):
|
2017-06-21 16:30:28 +00:00
|
|
|
"""
|
|
|
|
Clear the terminal's background image.
|
|
|
|
"""
|
2017-06-21 11:49:16 +00:00
|
|
|
raise NotImplementedError()
|