Sending Keystrokes using Python API
- iTerm2 version:3.3.6
- OS version:10.14.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (com.googlecode.iterm2.plistdrag-drop from finder into this window)
I have discovered the Python API for iTerm2 after I couldn't get my outdated AppleSrcipt to work. With AppleScript I was able to send System events to iTerm2 to split the Window horizontally (Shift + CMD + D) and vertically (CMD + D). How can I achieve the same through the Python API?
I could not find any related examples at https://www.iterm2.com/python-api/examples/index.html#examples-index