【问题标题】:Is it possible make tmux status bar float over the terminal content (instead of push it)?是否有可能使 tmux 状态栏浮动在终端内容上(而不是推送它)?
【发布时间】:2022-12-04 14:32:10
【问题描述】:

我最近更改了我的 tmux 配置以在我按下按键映射时切换状态栏。

显示状态栏时将终端内容往上推,弹幕效果烦人。
是否可以在终端内容上显示状态栏? (tmux 提示有这种“浮动行为”,所以我在想是否有一些选项也可以将它应用于状态栏)

【问题讨论】:

    标签: tmux


    【解决方案1】:

    我找到了解决方法!
    我没有显示状态,而是使用 display-message 并在消息中重新创建我的状态行。 display-message 具有所需的浮动行为。

    就像是

    tmux display-message -d 3000 "[#S] #{W:#{E:window-status-format} ,#{E:window-status-current-format} }  #[fg=colour255,bg=colour238,none] %Y-%m-%d "
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-03
      • 2014-10-02
      • 2021-10-30
      • 1970-01-01
      • 2021-07-31
      • 1970-01-01
      相关资源
      最近更新 更多