zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Redraw/Re-evaluate Window Size Function

Open EntilZha opened this issue 2 years ago • 2 comments
trafficstars

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.

EntilZha avatar Sep 19 '23 23:09 EntilZha

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...

imsnif avatar Sep 20 '23 06:09 imsnif

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).

woopla avatar Jun 14 '24 22:06 woopla