tmux mouse integration sticks after detaching
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.3
- OS version: 10.12.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist com.googlecode.iterm2.plist
Detailed steps to reproduce the problem:
- ssh to host
- attach to a tmux session (tmux a)
- scroll inside session using mousewheel. this should scroll tmux window, not the mac window
- detatch from tmux (ctrl-b d)
- scroll with mousewheel. gibberish is output. left-click anywhere. gibberish.
- exit ssh back to local mac
- repeat 5-6. gibberish even on local mac.
- ctrl-c, ctrl-d to logout of mac session.
- apple-t to open new tab/window on local mac. repeat 5-6. no gibberish.
What happened: tmux integration is sticking after detaching.
What should have happened: mouse should have reverted to normal behavior. scrolling should have scrolled the macos window. clicking, selecting text outside tmux should work as normal.