I attached to an existing tmux session from a second iterm2 window on a second screen.
tmux new-session -t matt
For some reason my session has a dotted border around the window. Why is this happening?
I attached to an existing tmux session from a second iterm2 window on a second screen.
tmux new-session -t matt
For some reason my session has a dotted border around the window. Why is this happening?
This is very similar to this question: Is there any way to redraw tmux window when switching smaller monitor to bigger one?
One way to prevent this (the dots around the "useful" portion) is to detach all other sessions when you attach:
$ tmux attach -d -t matt
You do not need to detach the other sessions. Enter your tmux prefix (e.g. Ctrl+b) and then enter the following command
:resize-window -A
I found it here: https://unix.stackexchange.com/questions/218815/tmux-force-resize-window/570015#570015
This border appears when the second window's zoom does not match the first windows zoom. Press cmd +/-
to make the window's zoom match and it will go away.