added iterm2 cursor handling for insert/focus lost handling :dancer: