Linux – Maximize window in tmux

linuxtmux

tmux shows screen like this:

[root@wpc-fc2 init]#                                      |············
                                                          |············
                                                          |············
[0] 0:bash 3:bash*               "vi@wpc-fc2:/etc/init" 21:04 21-Jun-11

Window has non-maximum width, attempt to copy text from it leads to "|···" getting in text.

How to fix it and get the tmux window full width?

Best Answer

tmux windows are limited to the size of the smallest client viewing any session they are linked to (that is, the window is part of).

This can be changed slightly with the aggressive-resize window option which constrains them to the size of the smallest client actually displaying that window.

To get the window back to full size, the best bet is to detach any other clients using that window. Use C-b D to select the clients individually or C-b: attach -d to detach all others on that session.

Related Question