tmux的“refresh-client”的用例示例?

从手册页(
http://manpages.ubuntu.com/manpages/precise/en/man1/tmux.1.html):

refresh-client [-S] [-t target-client]
(alias: refresh)
Refresh the current client if bound to a key, or a single client
if one is given with -t. If -S is specified, only update the
client’s status bar.

客户端绑定密钥意味着什么?我试着想一想我什么时候才能使用它.

这默认绑定到tmux中的“r”,我正在考虑覆盖它.有人可以解释一个示例用例想要刷新客户端吗?谢谢.

最佳答案 当有一些新内容要显示时,tmux仅更新屏幕.如果您在状态行中添加日期等内容,则日期将仅在窗格内容更改,窗格间更改或运行refresh-client时更新.因此,在这种情况下,您可以使用Ctrl-b r刷新屏幕.

或者,您也可以将set status-interval 1设置为每秒重绘一次,但这会导致CPU占用并耗尽电池电量.

如果状态行中没有任何动态,则可以安全地重新映射密钥.如果您需要执行refresh-client,您仍然可以使用tmux refresh-client运行它.

点赞