Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor change not working in iTerm2 with tmux 3.3a #53

Open
dbaldy opened this issue Oct 17, 2023 · 5 comments
Open

Cursor change not working in iTerm2 with tmux 3.3a #53

dbaldy opened this issue Oct 17, 2023 · 5 comments

Comments

@dbaldy
Copy link

dbaldy commented Oct 17, 2023

After quite some tinkering, it turns out that terminus doesn't change the cursor shape in my iTerm2 with Tmux.

I found that the right setup was using the standard terminal option and commenting out the tmux specific update:
image

I'm running TERM_PROGRAM_VERSION=3.3a

I don't know why that could be the case, I'm not super knowledgeable about that but if someone has the same issue at least they can find a workaround.

@wincent
Copy link
Owner

wincent commented Oct 17, 2023

Thanks for the report, @dbaldy.

I tried to repro this with iTerm (Build 3.4.21), with kitty (Version 0.30.1), and inside and outside of tmux (tmux next-3.4, built from source) but it doesn't repro for me.

At first I thought it might be due to the new allow-passthrough setting that defaults to off, and which was added not that long ago to tmux, but I don't see any difference in behavior with this line present or commented out in my ~/.config/tmux/tmux.conf:

set-option -g allow-passthrough all

So, I think for now we just leave this issue open with your workaround for others to find and comment on, and if we get a clearer picture of the exact conditions under which this repros then we can try to find a general fix for it.

@wincent wincent changed the title Cursor change not working in iTerm2 with Tmux Cursor change not working in iTerm2 with tmux 3.3a Oct 17, 2023
@dbaldy
Copy link
Author

dbaldy commented Oct 17, 2023

I am on MacOS with iTerm2 version 3.4.19.

What I get when I type set with the uncommented code:
image

With the commented code (working version):
image

My tmux.conf looks as follows:

set-window-option -g mode-keys vi
set -g default-terminal "xterm-256color"

@EricRobertCampbell
Copy link

EricRobertCampbell commented May 27, 2024

After quite some tinkering, it turns out that terminus doesn't change the cursor shape in my iTerm2 with Tmux.

I found that the right setup was using the standard terminal option and commenting out the tmux specific update: image

I'm running TERM_PROGRAM_VERSION=3.3a

I don't know why that could be the case, I'm not super knowledgeable about that but if someone has the same issue at least they can find a workaround.

For anyone else having the same issue: the lines to comment out are in <vim plugin directory>/terminus/plugin/terminus.vim, lines 46 - 54, 62 - 68.

This is occurring for me with:

  • tmux 3.4
  • iTerm2 3.5.0
  • terminus commit 51350e7
  • vim 9.1

@rifazn
Copy link

rifazn commented Jul 10, 2024

Cursor shape for me wasn't changing as well. Following the advice from OP worked.

Im running:

  • terminus (commit 51350e7)
  • foot terminal version: 1.17.2 +pgo +ime +graphemes -assertions
  • tmux 3.4
  • Vim 9.1 (2024 Jan 02, compiled Jun 17 2024 22:29:09)

@hajoe85
Copy link

hajoe85 commented Jul 27, 2024

Same problem and solution on ubuntu with kitty terminal for me:

  • tmux 3.4
  • vim 9.0
  • kitty 0.30.1

bitprophet added a commit to bitprophet/dotfiles that referenced this issue Jan 30, 2025
at least under Ventura + iterm2 + tmux 3.4

Per wincent/terminus#53
bitprophet added a commit to bitprophet/dotfiles that referenced this issue Jan 31, 2025
at least under Ventura + iterm2 + tmux 3.4

Per wincent/terminus#53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants