Unusual characters sent to terminal when losing and gaining focus (over ssh)
By ...@jimgaylard.com on October 10, 2014 06:03 (imported from Google Code)
I am getting strange characters sent to the terminal when I either Cmd + Tab back and forth between apps or even if I mouse click between apps.
When Iterm2 loses focus I get:
^[[O
When I return focus to iterm2 I get:
^[[I
The debuglog.txt file includes several focus events.
What steps will reproduce the problem?
- tail -f <any log file>
- Mouse click to another app OR Cmd + Tab to another app
- Mouse click back to Iterm OR Cmd + Tab back
What is the expected output?
No output
What do you see instead?
^[[O^[[I^[[O^[[I^[[O^[[I
What version of iTerm2 are you using?
Build 1.0.0.20140629
What OS version are you using?
OS X 10.9.4 Build 13E28
Please provide any additional information below.
I do all my dev work on a Vagrant box, running headless ubuntu 14.04 so this may have something to do with the fact that I am ssh'd onto that vm. The particular characters it is sending are interfering with Vim so that I need to press Enter every time Iterm regains the focus. I have only had this problem for the last week approximately. I can't recall anything else that may have been updated recently, though my dev environment is always changing. It looks as though I last updated iterm on 29th June 2014.