Mysterious escape sequences appearing in the input for mouse clicks

211 views
Skip to first unread message

Benson Margulies

unread,
Mar 4, 2015, 12:44:33 AM3/4/15
to iterm2-...@googlegroups.com
From time to time, one of my iterm2 windows starts to develop an unhealthy interest in other people's mouse clicks that change the selected window. When this situation ensues, every time I click on a window, an escape sequence arrives in the inout buffer of this window. It's not the 'null on idle' business, that's not turned on and the sequence is not a null.

Chas. Owens

unread,
Mar 4, 2015, 7:43:29 PM3/4/15
to iterm2-...@googlegroups.com

I have had something similar happen when I was running a terminal program that used the xterm mouse sequences (like vim or tmux) on a remote machine and lost my network connection. Every mouse click sent the escape sequence to the screen until I started and stopped a program that used the xterm escape sequences again.


On Wed, Mar 4, 2015, 00:44 Benson Margulies <ben...@basistech.com> wrote:
From time to time, one of my iterm2 windows starts to develop an unhealthy interest in other people's mouse clicks that change the selected window. When this situation ensues, every time I click on a window, an escape sequence arrives in the inout buffer of this window. It's not the 'null on idle' business, that's not turned on and the sequence is not a null.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George Nachman

unread,
Mar 22, 2015, 6:43:23 PM3/22/15
to iterm2-...@googlegroups.com
It could happen if mouse reporting gets turned on, but the app crashes/ssh session dies/etc that prevents it from getting turned off before you're returned to the prompt. You can tell this is the case because the I-bar cursor will have a circle in its center. Edit>Reset will turn it off.

George Nachman

unread,
Mar 22, 2015, 6:46:02 PM3/22/15
to iterm2-...@googlegroups.com
Actually, it's probably not mouse reporting, but focus reporting since you said it's due to window changes. That'll end ESC [ I or ESC [ O, depending on whether focus is gained or lost. That's enabled with ESC [ ? 1004 h and disabled with ESC [ ? 1004 l. Edit>Reset will turn this off as well. The root cause is usually the same as I mentioned before (dead ssh session or app crash).
Reply all
Reply to author
Forward
0 new messages