7

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?

tmux grid border

Matt Carrier
  • 5,602
  • 6
  • 26
  • 30
  • Also... feel a bit stupid now since I just noticed it says in the bottom right hand corner (size 105x30 from a smaller client)... :| – Matt Carrier Mar 02 '16 at 19:52

3 Answers3

6

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

rcreswick
  • 16,483
  • 15
  • 59
  • 70
1

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

Berkay Berabi
  • 1,933
  • 1
  • 10
  • 26
-1

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.

Matt Carrier
  • 5,602
  • 6
  • 26
  • 30