Skip to content

Commit 5741e26

Browse files
committed
builder: TMUXP_DETECT_TERMINAL_SIZE=0 to disable new behavior
1 parent 0b2e4eb commit 5741e26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tmuxp/workspace/builder.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ def build(self, session: t.Optional[Session] = None, append: bool = False) -> No
245245
"start_directory"
246246
]
247247

248-
if has_gte_version("2.6"):
248+
if (
249+
has_gte_version("2.6")
250+
and os.getenv("TMUXP_DETECT_TERMINAL_SIZE", "1") == "1"
251+
):
249252
terminal_size = shutil.get_terminal_size(
250253
fallback=(get_default_columns(), get_default_rows())
251254
)

0 commit comments

Comments
 (0)