问题
when I re-attach a tmux session, the width of the tmux window is still the previous width and padded with white dots:
So my question is how to adjust the tmux width to fit in the terminal panel? The ideal setting would be the tmux session's width is auto-adjusted whenever re-attached.
PS: I am using iterm2 on mac.
EDIT: This is actually answered here: https://stackoverflow.com/a/19280187/1464263
回答1:
Seems like you have another client attached to this session and it's screen width is half your screen width. If you detach that second session those dots should go away.
tmux ls
will show you all the sessions.
tmux detach
will allow you to detach the session.
来源:https://stackoverflow.com/questions/44829622/tmux-how-to-adjust-the-tmux-sessions-width-to-fit-in-the-terminal-panel