terminus icon indicating copy to clipboard operation
terminus copied to clipboard

Focus reporting not working in bare iTerm nor tmux

Open rlue opened this issue 8 years ago • 2 comments

Focus reporting isn't working on my setup, for some reason. Terminus' other features (dynamic cursor & ‘bracketed paste’ mode) are working just fine. I'm on:

  • Mac OS 10.11 El Capitan
  • iTerm2 Build 3.0.15
  • MacVim / vim 8.0 with patches 1-596
  • tmux 2.5

I have the following file set up to test it out.

" ~/.vim/plugin/foo.vim
augroup foo
  autocmd!
  autocmd FocusGained * echo 'hello!'
  autocmd FocusLost * echo 'goodbye!'
augroup END

Being located in the /plugin directory, it's loaded automatically on launch. It produces the expected output in GUI vim (MacVim), but nothing in the terminal. I've tried in both the bare terminal (where I even tried setting g:TerminusAssumeITerm) and tmux (where I made sure to set -g focus-events on, per #21).

Any insight would be greatly appreciated.

rlue avatar Aug 02 '17 16:08 rlue

@rlue fwiw, I was having a similar issue and I solved it via https://github.com/wincent/terminus/issues/23#issuecomment-334972338. not sure if it helps you.

rcarraretto avatar Oct 07 '17 23:10 rcarraretto

Unfortunately, it looks like we're dealing with separate issues. Thanks for the suggestion, though!

rlue avatar Oct 11 '17 05:10 rlue

Sorry for never replying to this. I'm going to close it due to inactivity. 😔

wincent avatar Oct 17 '23 09:10 wincent