sos4nt / dynamic-colors

Change terminal colors on the fly
MIT License
198 stars 42 forks source link

fix: tmux `allow-passthrough` is off by default #29

Open gszr opened 1 year ago

gszr commented 1 year ago

As of tmux 3.3a, the allow-passthrough option is off by default. Further, as mentioned in https://github.com/tmux/tmux/wiki/FAQ:

The passthrough escape sequence is no longer necessary for changing the
cursor colour or style as tmux now has its own support (see the Cs, Cr,
Ss and Se capabilities).

This commit checks whether the allow-passthrough is set, and uses it; otherwise, no wrapping is performed.

cbaconnier commented 1 year ago

Thanks ! I tried locally and it fixed my issue.

It would also close https://github.com/sos4nt/dynamic-colors/issues/23