Disable dynamic background color inside Zellij to stop transparent panes becoming opaque - #16217
Open
a3lem wants to merge 1 commit into
Open
Disable dynamic background color inside Zellij to stop transparent panes becoming opaque#16217a3lem wants to merge 1 commit into
a3lem wants to merge 1 commit into
Conversation
Zellij re-emits the pane background as explicit cells, which most terminals draw opaque, so panes lose transparency. Guard $ZELLIJ like $TMUX.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a minor annoyance introduced since v25.07.1 by PR #15527.
When using Helix inside Zellij with a transparent terminal background, opening Helix turns panes opaque, and pane transparency isn't restored when Helix is closed.
The only terminal where I haven't observed this so far is Kitty.
I used my AI coding agent to understand what's going on. The short vesion (my words): Zellij re-emits the pane background as explicit cells. Most terminals draw these cells as opaque – hence, panes lose transparency. This doesn't get restored when Helix is closed because Helix no longer emits OSC111 on exit. Kitty is the exception because it applies transparency to both default background and cell background.
This PR blocks dynamic background color setting in Zellij, just as was already being done for Tmux. It's a small fix (full discloure, though: I identified it using AI). The comment was written by me. The formatting was checked against rustfmt. Zellij panes now retain their transparency when using Helix.