Prevent resize on attach?

11 views
Skip to first unread message

jer...@jeroenjanssens.com

unread,
May 12, 2020, 11:10:13 AM5/12/20
to tmux-users
Dear all,

I'm currently developing tmuxr, which is an R package to manage tmux (see https://datascienceworkshops.github.io/tmuxr/). For debugging purposes, I find it useful to attach to a session in a separate terminal. Attaching, however, causes the window to resize.

I was wondering whether there's a way to prevent this? If not, would it make sense to add an additional flag to the attach-session command? Or perhaps to let the existing "-r" flag prevent this since it stands for "read-only"?

Thanks,

Jeroen

Nicholas Marriott

unread,
May 12, 2020, 11:16:10 AM5/12/20
to jer...@jeroenjanssens.com, tmux-users
Hi

You can set window-size to manual and tmux will use whatever size you
set with resize-window.

Or set window-size to largest and it will stick with your original
client if it is bigger.

If you build from 3.1b or master, readonly clients don't affect the
size in master unless there are only readonly clients.
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/e3b680b1-d55c-4f9c-b173-7537d1379396%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages