tmux fills part of the screen with dots: another client is attached at a different size
Dots in tmux mark screen space outside the window: another client of a different size is attached, or window-size is set. Use attach -d or change window-size.
When you attach to tmux, part of your screen, usually the right side or the bottom, is filled with dots and the shell uses only the rest. The dots mark space that is outside the tmux window: the window is smaller than your terminal. The exact fill character depends on your tmux version and its fill-character option.
The window has one size, but several terminals (tmux calls them clients) can show it at once. When their sizes differ, tmux has to pick one size for the window, and terminals bigger than that size show dots around it. A terminal smaller than the window shows only part of it.
Find the other client
tmux list-clients
lists every terminal attached to the server, with its size. Often it is an old SSH session that never closed, for example from another device or a connection that dropped while tmux kept running.
Fixes
- Detach the others when you attach:
tmux attach -d. From inside tmux,tmux detach-client -adetaches every client except yours. The key binding Prefix then Shift+D lets you pick one from a list. - Check
window-size. It decides which client sets the size: latest, the default since tmux 3.1, uses the client that was active most recently. Typing in your terminal usually fixes the size.largestandsmallestuse the biggest or smallest attached session.manualkeeps a fixed size.resize-windowsets this for you, so after using it, runtmux setw -u window-sizeto go back to automatic sizing.aggressive-resize(setw -g aggressive-resize on) sizes each window by only the sessions that are showing it, which helps when several sessions share windows.- Attach without affecting the size:
tmux attach -f ignore-size, ortmux attach -rfor a read-only view that also ignores size. Use this on the smaller terminal, so that it does not shrink the window for everyone else.
Before tmux 2.9 added window-size, windows always followed the smallest attached session, so the dots appeared on the larger terminal as soon as a smaller one attached. On a server that old, detaching the other client is the fix.
If the size is wrong with no other client attached, see Terminal size wrong after resize: stty size, resize and COLUMNS.
Related
- Terminal size wrong after resize: stty size, resize and COLUMNS
- Keep your work after a disconnect with tmux, and attach automatically
- Shell and tmux basics
- tmux "sessions should be nested with care, unset $TMUX to force"
- tmux over Mosh draws the status bar or last line wrong