def change_terminal(image_file_path): if not isinstance(image_file_path, str): print("A image path must be passed to the change terminal function.") return adapter = identify() if adapter is None: print("Terminal not supported") adapter.set_image_file_path(image_file_path)
def clear_terminal(): adapter = identify() adapter.clear()