You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using zellij run, the first execution correctly detects the terminal size, but when re-run, stty size and equivalent commands return 0 0. This suggests that Zellij is not correctly passing the terminal size to the newly spawned shell in re-run mode.
Minimal reproduction
Open a Zellij session.
Run the following command:
zellij run -- nu -l -c 'stty size'
or
zellij run -- bash -ic 'stty size'
or simply
zellij run -- stty size
Observe that the command correctly outputs the terminal size (e.g., 47 91).
Use the re-run feature (Enter).
Observe that the output is now 0 0, indicating that the terminal size is not being correctly passed.
Expected Behavior
Re-running a command using zellij run should preserve and correctly pass the terminal size to the spawned shell, just like the initial execution.
Actual Behavior
On re-run, the terminal size is not passed correctly, causing commands like stty size to return 0 0.
Environment
Zellij version: 0.41.2
Shell: nushell
OS: macOS Sonoma 14.7
Terminal Emulator: Alacritty
Additional information
This issue occurs consistently with different shells (Bash, Nushell, etc.).
The initial execution works fine, but only re-run fails.
In particular, Nushell's many built-in commands (like ls) format their table output based on the terminal size. When the terminal size is incorrectly reported as 0, re-running the commands result in an error:
Couldn't fit table into 0 columns!
This makes it impossible to retrieve the expected output upon re-run.
So, this is the only way to re-run ls correctly.
zellij run -- nu -l -c 'stty rows 47 cols 91; ls'
Could you confirm whether this is an expected limitation or a bug? If this behavior is unintended, would it be possible to ensure that terminal size information is passed correctly during re-run?
The text was updated successfully, but these errors were encountered:
2. Issues with the Zellij UI / behavior / crash
Issue description
When using
zellij run
, the first execution correctly detects the terminal size, but when re-run,stty size
and equivalent commands return0 0
. This suggests that Zellij is not correctly passing the terminal size to the newly spawned shell in re-run mode.Minimal reproduction
zellij run -- nu -l -c 'stty size'
zellij run -- bash -ic 'stty size'
47 91
).Enter
).0 0
, indicating that the terminal size is not being correctly passed.Expected Behavior
Re-running a command using
zellij run
should preserve and correctly pass the terminal size to the spawned shell, just like the initial execution.Actual Behavior
On re-run, the terminal size is not passed correctly, causing commands like
stty size
to return0 0
.Environment
Additional information
ls
) format their table output based on the terminal size. When the terminal size is incorrectly reported as0
, re-running the commands result in an error:So, this is the only way to re-run
ls
correctly.Could you confirm whether this is an expected limitation or a bug? If this behavior is unintended, would it be possible to ensure that terminal size information is passed correctly during re-run?
The text was updated successfully, but these errors were encountered: