.. iTerm2 Python API documentation master file, created by sphinx-quickstart on Sun Apr 29 22:07:35 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Python API ========== iTerm2 offers a Python package which makes it easy to write Python scripts that control iTerm2 and extend its behavior. **Getting Started** Start by following the :ref:`tutorial `, which gives a step-by-step guide to writing a script and describes the architecture of iTerm2's scripting system. **Example Code** Visit the :ref:`examples ` for a collection of working examples. .. toctree:: :maxdepth: 1 :caption: Class reference: alert app arrangement broadcast color colorpresets customcontrol connection focus keyboard lifecycle mainmenu preferences profile prompt registration screen selection session statusbar tab tmux tool transaction util variables window ---- Indices and tables ================== * :ref:`genindex` * :ref:`search`