В macOS 10.13.1
Я пытаюсь запустить следующее как скрипт на python в iTerm2 Build 3.3.0beta2
. Python-версия пакета iterm2 - 0.64
. Сценарий завершается и завершается, но фоновое изображение не появляется.
#!/usr/bin/env python3.7
import iterm2
async def main(connection):
app=await iterm2.async_get_app(connection)
session=app.current_terminal_window.current_tab.current_session
profile = await session.async_get_profile()
color = iterm2.Color(100, 0, 0)
await profile.async_set_background_color(color)
await profile.async_set_background_image_location("/Users/MYUSER/temp/oTCqDl2.jpg")
iterm2.run_until_complete(main)
Я не смог найти ничего в документации, объясняющей, почему это так. Заранее спасибо.
https://iterm2.com/python-api/profile.html?highlight=background#iterm2.Profile.async_set_background_image_mode