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

Vim inside zellij not resizing when terminal is resized #3398

Open
andrearosasco opened this issue Jun 5, 2024 · 0 comments
Open

Vim inside zellij not resizing when terminal is resized #3398

andrearosasco opened this issue Jun 5, 2024 · 0 comments

Comments

@andrearosasco
Copy link

andrearosasco commented Jun 5, 2024

1. Graphical issue inside a terminal pane (eg. something does not look as it should)

Hello, I'm not doing all the steps as I don't know how to recreate the issue but sometimes it just happens.

Basically, in a session with multiple tabs it might happen that a tab becomes unresponsive to terminal resizing i.e. while changing the terminal emulator window size the value returned by stty size remain the same on that tab.

This does not affect zellij interface which remains responsive but the interface of the programs running in that tabs. I attached a video of the problem affecting vim.

vim_not_resizing.mp4.mp4

Basic information

zellij --version: 0.40.1

stty size: 25 118

uname -av or ver(Windows):

Edit

I found the problem:
I have zellij running on a remote machine. The problem presents itself when in a certain tab I run the command qsub -I ./run_job.sh (it is a pbs command) to get an interactive session on a node of the cluster node. When the requested resources are allocated I get a terminal inside a node and the resizing stops working.

Note: if from a zellij tab on the remote machine, I directly ssh a node (no qsub involved) and then I run something like nvim on that node, everything works without any issue. So, it has something to do with qsub.

I'm guessing that, if the resizing signals are not forwarded by qsub -I, there is not much to do on your side. Feel free to close the issue if you agree.

Edit 2

The only soultion to this is to run a non-interactive job which starts a zellij session and then hangs. Then, ssh the node and attach to the session so that any command can only use the resources reserved through qsub. The problem is that with zellij I don't think it is possible to create a session without attaching to it. For now I'm falling back to tmux but it would be a nice feature to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant