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

fix: Allow terminal title passthrough even when not drawing pane frames. #1113

Merged
merged 3 commits into from
Feb 28, 2022
Merged

fix: Allow terminal title passthrough even when not drawing pane frames. #1113

merged 3 commits into from
Feb 28, 2022

Conversation

KerfuffleV2
Copy link
Contributor

Currently the terminal title is set in the pane frame render function, which does not seem to run when displaying pane borders is disabled.

This pull adds a render_terminal_title method to the Pane trait and a render_terminal_title_if_needed method to the PaneContentsAndUi struct. The latter can be called from Tab::render to ensure the title is always set when needed.

Note: First time looking at the Zellij codebase so I don't know if this is the correct approach. However, it does fix the issue for me with pane frames disabled (and terminal title setting still works with them enabled.)

Closes #1111
Other related issue: #883

Copy link
Contributor

@a-kenji a-kenji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you very much.

@a-kenji a-kenji merged commit e2081f2 into zellij-org:main Feb 28, 2022
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

Successfully merging this pull request may close these issues.

Terminal title passthrough only works when pane frames are enabled.
2 participants