tmux equivalent to GNU screen's :wrap mode

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












13















I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.



I've read the man page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S and putting less into "follow" mode.










share|improve this question




























    13















    I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.



    I've read the man page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S and putting less into "follow" mode.










    share|improve this question


























      13












      13








      13


      4






      I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.



      I've read the man page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S and putting less into "follow" mode.










      share|improve this question
















      I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following compile sessions whose lines are hundreds of characters long.



      I've read the man page and googled extensively and cannot find an equivalent command, or a viable work-around using shell commands. The closest I can come up with is piping everything to less -S and putting less into "follow" mode.







      tmux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 27 '12 at 21:11









      jasonwryan

      50.3k14134190




      50.3k14134190










      asked Jul 27 '12 at 14:34









      DougDoug

      6614




      6614




















          2 Answers
          2






          active

          oldest

          votes


















          7














          I don't think tmux has this feature, feature request?



          One pipable workaround that I often use is "cutting" up to and including $COLUMNS:



          tail -f LOG | cut -c1-$COLUMNS


          Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.






          share|improve this answer























          • Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

            – Doug
            Jul 27 '12 at 16:14







          • 1





            You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

            – Thor
            Jul 27 '12 at 16:23












          • +G is actually redundant.

            – Thor
            Jul 27 '12 at 16:53











          • This unfortunately doesn't work with xtail...

            – MemphiZ
            Dec 24 '16 at 0:37


















          2














          I have tmux 2.6, and I can run the command setterm -linewrap off to have long lines truncated instead of wrapped.



          See these answers:



          • https://unix.stackexchange.com/a/345492

          • https://superuser.com/a/600694





          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            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%2f44122%2ftmux-equivalent-to-gnu-screens-wrap-mode%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            I don't think tmux has this feature, feature request?



            One pipable workaround that I often use is "cutting" up to and including $COLUMNS:



            tail -f LOG | cut -c1-$COLUMNS


            Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.






            share|improve this answer























            • Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

              – Doug
              Jul 27 '12 at 16:14







            • 1





              You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

              – Thor
              Jul 27 '12 at 16:23












            • +G is actually redundant.

              – Thor
              Jul 27 '12 at 16:53











            • This unfortunately doesn't work with xtail...

              – MemphiZ
              Dec 24 '16 at 0:37















            7














            I don't think tmux has this feature, feature request?



            One pipable workaround that I often use is "cutting" up to and including $COLUMNS:



            tail -f LOG | cut -c1-$COLUMNS


            Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.






            share|improve this answer























            • Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

              – Doug
              Jul 27 '12 at 16:14







            • 1





              You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

              – Thor
              Jul 27 '12 at 16:23












            • +G is actually redundant.

              – Thor
              Jul 27 '12 at 16:53











            • This unfortunately doesn't work with xtail...

              – MemphiZ
              Dec 24 '16 at 0:37













            7












            7








            7







            I don't think tmux has this feature, feature request?



            One pipable workaround that I often use is "cutting" up to and including $COLUMNS:



            tail -f LOG | cut -c1-$COLUMNS


            Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.






            share|improve this answer













            I don't think tmux has this feature, feature request?



            One pipable workaround that I often use is "cutting" up to and including $COLUMNS:



            tail -f LOG | cut -c1-$COLUMNS


            Note that this is not "nowrap", it actually removes the ends of the lines. Also, terminal resizing is not acted upon.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 27 '12 at 15:23









            ThorThor

            11.8k13459




            11.8k13459












            • Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

              – Doug
              Jul 27 '12 at 16:14







            • 1





              You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

              – Thor
              Jul 27 '12 at 16:23












            • +G is actually redundant.

              – Thor
              Jul 27 '12 at 16:53











            • This unfortunately doesn't work with xtail...

              – MemphiZ
              Dec 24 '16 at 0:37

















            • Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

              – Doug
              Jul 27 '12 at 16:14







            • 1





              You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

              – Thor
              Jul 27 '12 at 16:23












            • +G is actually redundant.

              – Thor
              Jul 27 '12 at 16:53











            • This unfortunately doesn't work with xtail...

              – MemphiZ
              Dec 24 '16 at 0:37
















            Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

            – Doug
            Jul 27 '12 at 16:14






            Thanks for the info. I've tried variations on the theme as well. I've found "less -eS --follow-name" to be as close as I can get... IF if remember to run that command first.

            – Doug
            Jul 27 '12 at 16:14





            1




            1





            You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

            – Thor
            Jul 27 '12 at 16:23






            You might do a little better with less +G +F -eS --follow-name, that will get you directly into tail mode. But you're right, it would be better if the terminal handled the wrapping.

            – Thor
            Jul 27 '12 at 16:23














            +G is actually redundant.

            – Thor
            Jul 27 '12 at 16:53





            +G is actually redundant.

            – Thor
            Jul 27 '12 at 16:53













            This unfortunately doesn't work with xtail...

            – MemphiZ
            Dec 24 '16 at 0:37





            This unfortunately doesn't work with xtail...

            – MemphiZ
            Dec 24 '16 at 0:37













            2














            I have tmux 2.6, and I can run the command setterm -linewrap off to have long lines truncated instead of wrapped.



            See these answers:



            • https://unix.stackexchange.com/a/345492

            • https://superuser.com/a/600694





            share|improve this answer



























              2














              I have tmux 2.6, and I can run the command setterm -linewrap off to have long lines truncated instead of wrapped.



              See these answers:



              • https://unix.stackexchange.com/a/345492

              • https://superuser.com/a/600694





              share|improve this answer

























                2












                2








                2







                I have tmux 2.6, and I can run the command setterm -linewrap off to have long lines truncated instead of wrapped.



                See these answers:



                • https://unix.stackexchange.com/a/345492

                • https://superuser.com/a/600694





                share|improve this answer













                I have tmux 2.6, and I can run the command setterm -linewrap off to have long lines truncated instead of wrapped.



                See these answers:



                • https://unix.stackexchange.com/a/345492

                • https://superuser.com/a/600694






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 9 at 21:38









                ddffnnddffnn

                462




                462



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f44122%2ftmux-equivalent-to-gnu-screens-wrap-mode%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown






                    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?