Urxvtとtmux - ウィンドウタイトルの設定

Urxvtとtmux - ウィンドウタイトルの設定

urxvtでtmuxを使用すると、ウィンドウのタイトルは更新されません。通常、urxvtを使用すると、ディレクトリを変更するたびにウィンドウのタイトルが更新され、「$ USER @ $ HOST:$ PWD」形式ですが、urxvtでtmuxを実行すると、ウィンドウのタイトルはtmuxの実行前と同じままです。

Googleが見つけたいくつかの回答で提案されているように、端末のオーバーライドのためにtmux.confで他の設定を試しましたが、何も機能しません。

誰でもそれを操作できましたか? XmonadをWMとして使用しますが、xtermでtmuxを実行すると同じ設定が機能するため(タイトルはtmux.confのset-titles-stringによって変わります)、tmuxとurxvtは実際にはお互いを理解していないようです。

ソフトウェアバージョン:

rxvt-Unicode(urxvt)v9.21 - リリース:2014-12-31

マルチプレクサ1.9

私のドットファイル: https://github.com/overlordtm/dotfiles

ベストアンサー1

tmuxヘッダーを設定できるかどうかを確認するには、端末の説明を確認してください。

  • 端末記述にncurses拡張機能があるかどうかXT または
  • 端末記述に terminfo 機能がある場合fslおよびtsl(状態行から状態行へ)。

ncursesのterminfoデータベースはXTしばらくxtermエントリに対して定義されています(2010年から)この規格はncursesデータベースで議論されています。画面拡張

時々、エントリだけがurxvtのアドインを定義することがあります。もしあなたエントリを変更しないと、fsl / tslが含まれない可能性があります。端末データベースの議論の説明fsl/tsl が推奨されない理由:

# These building-blocks allow access to the X titlebar and icon name as a
# status line.  There are a few problems in using them in entries:
#
# a) tsl should have a parameter to denote the column on which to transfer to
#    the status line.
# b) the "0" code for xterm updates both icon-title and window title.  Some
#    window managers such as twm (and possibly window managers descended from
#    it such as tvtwm, ctwm, and vtwm) track windows by icon-name. Thus, you
#    don't want to mess with icon-name when using those window managers.
#
# The extension "TS" is preferable, because it does not accept a parameter.
# However, if you are using a non-extended terminfo, "TS" is not visible.
xterm+sl|access X title line and icon name,
        hs,
        dsl=\E]0;\007, fsl=^G, tsl=\E]0;, TS=\E]0;,

おすすめ記事