Skip to content

Commit 2e195a6

Browse files
committed
hotfix for session sizes in tmux 2.6
See tmux 2.6 changes: * All new sessions that are unattached (whether with -d or started with no terminal) are now created with size 80 x 24. Whether the status line is on or off does not affect the size of new sessions until they are attached. This fix uses the -x and -y arguments (width and height) to server. Right now we default to 800 width and 600 height.
1 parent ae2b570 commit 2e195a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libtmux/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ def new_session(self,
476476

477477
if start_directory:
478478
tmux_args += ('-c', start_directory)
479+
480+
if has_gte_version('2.6'):
481+
tmux_args += ('-x', 800, '-y', 600)
482+
479483
proc = self.cmd(
480484
'new-session',
481485
*tmux_args

0 commit comments

Comments
 (0)