tmux:如何调整 tmux 会话的宽度以适应终端面板? [英] tmux: how to adjust the tmux session's width to fit in the terminal panel?

查看:146
本文介绍了tmux:如何调整 tmux 会话的宽度以适应终端面板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我重新附加一个 tmux 会话时,tmux 窗口的宽度仍然是以前的宽度并用白点填充:

when I re-attach a tmux session, the width of the tmux window is still the previous width and padded with white dots:



所以我的问题是如何调整 tmux 宽度以适应终端面板?理想的设置是 tmux 会话的宽度在重新附加时自动调整.

So my question is how to adjust the tmux width to fit in the terminal panel? The ideal setting would be the tmux session's width is auto-adjusted whenever re-attached.

PS:我在 mac 上使用 iterm2.

PS: I am using iterm2 on mac.

这实际上是在这里回答:https://stackoverflow.com/a/19280187/1464263>

This is actually answered here: https://stackoverflow.com/a/19280187/1464263

推荐答案

似乎您有另一个客户端连接到此会话,并且它的屏幕宽度是您屏幕宽度的一半.如果您取消第二个会话,这些点应该会消失.

Seems like you have another client attached to this session and it's screen width is half your screen width. If you detach that second session those dots should go away.

tmux ls 将显示所有会话.

tmux detach 将允许您分离会话.

这篇关于tmux:如何调整 tmux 会话的宽度以适应终端面板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆