-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Resizing tmux pane doesn't update terminfo #2005
Comments
tmux doesn't have to do anything other than what it does (TIOCSWINSZ), anything else would be up to the shell. Does |
If I resize a pane I do see my $COLUMNS and tput cols change values accordingly. But I'm on zsh in terminator. |
I'm on a Mac, so no
Hmmm...is the shell involved with |
Does "tmux lsp" show the right size? Does this still happen with tmux master? There was some problem about not resizing if there was output. |
I haven't tried master yet. Hmmm...some apps obviously know what the proper pane size is (fullscreen apps like vim). However, other things, like zsh (which updates the |
Ok, so I killed my active tmux server and started a new one, and now it appears to be behaving properly, at least for a simple case with one window and a couple of panes. |
I restored a resurrect-saved session, and it's still working. Interestingly, it's not 100% -- every once in a while after I resize a pane, the shell won't notice, but usually it does. |
Try master please and see if you still have the problem. |
Progress bars will now dynamically resize depending on terminal window width, being replaced with percentages if "squished" too far. It works best on *nix platforms because of SIGWINCH, while on Windows retrieving the size is required before each render iteration, and isn't as responsive. Terminal multiplexers are a bigger issue: tmux seems to buffer SIGWINCH/terminfo and is plain broken on versions including the current latest stable (3.0a) (see issue #2005[1]). This was fixed on `master`, but is yet to be released, and even with the fix the experience is far from ideal (lags quite a bit, no continuous resize). GNU screen also has some rendering issues I haven't looked too much into yet. Untested on macOS terminals, but I expect it to work as well as on Linux. Terminals tested: - Linux: st, urxvt, xterm - Windows: cmd.exe and PowerShell standalone, and both inside the new Windows Terminal[2] app. Resizing works fine in all cases, though isn't as responsive as on Linux. Part of #1279 [1]: tmux/tmux#2005 [2]: https://github.com/microsoft/terminal
Progress bars will now dynamically resize depending on terminal window width, being replaced with percentages if "squished" too far. It works best on *nix platforms because of SIGWINCH, while on Windows retrieving the size is required before each render iteration, and isn't as responsive. Terminal multiplexers are a bigger issue: tmux seems to buffer SIGWINCH/terminfo and is plain broken on versions including the current latest stable (3.0a) (see issue #2005[1]). This was fixed on `master`, but is yet to be released, and even with the fix the experience is far from ideal (lags quite a bit, no continuous resize). GNU screen also has some rendering issues I haven't looked too much into yet. Untested on macOS terminals, but I expect it to work as well as on Linux. Terminals tested: - Linux: st, urxvt, xterm - Windows: cmd.exe and PowerShell standalone, and both inside the new Windows Terminal[2] app. Resizing works fine in all cases, though isn't as responsive as on Linux. Part of #1279 [1]: tmux/tmux#2005 [2]: https://github.com/microsoft/terminal
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue description
Resizing a tmux pane doesn't update the terminfo within the pane --
tput
will continue to report the original number of lines and columns after a pane is resized. Sometimes it will update after one resize, but not more than that. Detaching and reattaching to a session will update the terminfo.To reproduce:
tput cols
tput cols
againtput cols
has been updated.Required information
Please provide the following information:
tmux -V
).uname -sp
).echo $TERM
).tmux kill-server; tmux -vv new
).The text was updated successfully, but these errors were encountered: