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

Redraw/Re-evaluate Window Size Function #2797

Open
EntilZha opened this issue Sep 19, 2023 · 2 comments
Open

Redraw/Re-evaluate Window Size Function #2797

EntilZha opened this issue Sep 19, 2023 · 2 comments

Comments

@EntilZha
Copy link

A few times I've managed to get zellij into a state where the zellij window size does not match my terminal. This usually happens when I'm resizing terminal a lot/disconnecting/connecting monitors, etc. Its hard to pin down a cause though.

It would help if there were a function to force a redraw/re-evaluate of window size. In my current instance of the issue, if I use the session manager to open a new session, the new session is the correct size but the old one isn't.

@imsnif
Copy link
Member

imsnif commented Sep 20, 2023

Hey, this sounds quite odd - because such a function would only call the same function we use when the terminal window is resized... does that solve the problem in such a state?

If not, does detaching and reattaching to the session help?

Also, are perhaps multiple users connected to the session? That's the only thing I can imagine that can cause this...

@woopla
Copy link

woopla commented Jun 14, 2024

I'm having the same issue: I'm running Zellij in my VSCode terminals for persistence across session (I'm almost exclusively using VScode through remote-ssh to a Linux box. This is what my terminal looks like:
image

Running tput cols returns 80, so I think Zellij is not getting some info from the VScode terminal. Is there a way to manually force Zellij to re-evaluate things? It sometimes work fine, but I cannot figure out how to get it to behave (or misbehave).

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

3 participants