Urxvt and tmux - set window title

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux.



I have tried different set terminal-overrides in tmux.conf as suggested in some answers I found on google, but none worked.



Has anybody managed to make it work? I use Xmonad as WM, but same config works if I run tmux from xterm (title changed accordingly to set-titles-string in tmux.conf), so I guess that tmux and urxvt does not really understand each other.



Versions of software:




rxvt-unicode (urxvt) v9.21 - released: 2014-12-31



tmux 1.9




My dotfiles:
https://github.com/overlordtm/dotfiles










share|improve this question



























    up vote
    0
    down vote

    favorite












    When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux.



    I have tried different set terminal-overrides in tmux.conf as suggested in some answers I found on google, but none worked.



    Has anybody managed to make it work? I use Xmonad as WM, but same config works if I run tmux from xterm (title changed accordingly to set-titles-string in tmux.conf), so I guess that tmux and urxvt does not really understand each other.



    Versions of software:




    rxvt-unicode (urxvt) v9.21 - released: 2014-12-31



    tmux 1.9




    My dotfiles:
    https://github.com/overlordtm/dotfiles










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux.



      I have tried different set terminal-overrides in tmux.conf as suggested in some answers I found on google, but none worked.



      Has anybody managed to make it work? I use Xmonad as WM, but same config works if I run tmux from xterm (title changed accordingly to set-titles-string in tmux.conf), so I guess that tmux and urxvt does not really understand each other.



      Versions of software:




      rxvt-unicode (urxvt) v9.21 - released: 2014-12-31



      tmux 1.9




      My dotfiles:
      https://github.com/overlordtm/dotfiles










      share|improve this question















      When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux.



      I have tried different set terminal-overrides in tmux.conf as suggested in some answers I found on google, but none worked.



      Has anybody managed to make it work? I use Xmonad as WM, but same config works if I run tmux from xterm (title changed accordingly to set-titles-string in tmux.conf), so I guess that tmux and urxvt does not really understand each other.



      Versions of software:




      rxvt-unicode (urxvt) v9.21 - released: 2014-12-31



      tmux 1.9




      My dotfiles:
      https://github.com/overlordtm/dotfiles







      tmux window-manager rxvt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 15 '15 at 9:07

























      asked Jul 15 '15 at 8:56









      Andraz

      1013




      1013




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          tmux looks at the terminal description to see if it can set the title:



          • if the terminal description has the ncurses extended capability XT or

          • if the terminal description has the terminfo capabilities fsl and tsl (from- and to-status-line).

          ncurses' terminfo database has defined XT for xterm entries for some time (since 2010); there is a discussion of the criteria for that in the ncurses database in Screen Extensions.



          Only occasional entries might define the other capabilities for urxvt. If you did not modify the entry, it probably does not include fsl/tsl. The discussion in the terminal database explains why fsl/tsl are not recommended:



          # 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;07, fsl=^G, tsl=E]0;, TS=E]0;,





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f216114%2furxvt-and-tmux-set-window-title%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            tmux looks at the terminal description to see if it can set the title:



            • if the terminal description has the ncurses extended capability XT or

            • if the terminal description has the terminfo capabilities fsl and tsl (from- and to-status-line).

            ncurses' terminfo database has defined XT for xterm entries for some time (since 2010); there is a discussion of the criteria for that in the ncurses database in Screen Extensions.



            Only occasional entries might define the other capabilities for urxvt. If you did not modify the entry, it probably does not include fsl/tsl. The discussion in the terminal database explains why fsl/tsl are not recommended:



            # 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;07, fsl=^G, tsl=E]0;, TS=E]0;,





            share|improve this answer


























              up vote
              0
              down vote













              tmux looks at the terminal description to see if it can set the title:



              • if the terminal description has the ncurses extended capability XT or

              • if the terminal description has the terminfo capabilities fsl and tsl (from- and to-status-line).

              ncurses' terminfo database has defined XT for xterm entries for some time (since 2010); there is a discussion of the criteria for that in the ncurses database in Screen Extensions.



              Only occasional entries might define the other capabilities for urxvt. If you did not modify the entry, it probably does not include fsl/tsl. The discussion in the terminal database explains why fsl/tsl are not recommended:



              # 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;07, fsl=^G, tsl=E]0;, TS=E]0;,





              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                tmux looks at the terminal description to see if it can set the title:



                • if the terminal description has the ncurses extended capability XT or

                • if the terminal description has the terminfo capabilities fsl and tsl (from- and to-status-line).

                ncurses' terminfo database has defined XT for xterm entries for some time (since 2010); there is a discussion of the criteria for that in the ncurses database in Screen Extensions.



                Only occasional entries might define the other capabilities for urxvt. If you did not modify the entry, it probably does not include fsl/tsl. The discussion in the terminal database explains why fsl/tsl are not recommended:



                # 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;07, fsl=^G, tsl=E]0;, TS=E]0;,





                share|improve this answer














                tmux looks at the terminal description to see if it can set the title:



                • if the terminal description has the ncurses extended capability XT or

                • if the terminal description has the terminfo capabilities fsl and tsl (from- and to-status-line).

                ncurses' terminfo database has defined XT for xterm entries for some time (since 2010); there is a discussion of the criteria for that in the ncurses database in Screen Extensions.



                Only occasional entries might define the other capabilities for urxvt. If you did not modify the entry, it probably does not include fsl/tsl. The discussion in the terminal database explains why fsl/tsl are not recommended:



                # 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;07, fsl=^G, tsl=E]0;, TS=E]0;,






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 28 '16 at 22:29

























                answered Jun 28 '16 at 22:18









                Thomas Dickey

                50.3k587157




                50.3k587157



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f216114%2furxvt-and-tmux-set-window-title%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?