less: advertise terminfo through pipeman causes a broken pipe when using a pager other than lessParse...

Can a person survive on blood in place of water?

Popcorn is the only acceptable snack to consume while watching a movie

Why didn't Thanos use the Time Stone to stop the Avengers' plan?

Did the UK Government ask for the Irish backstop?

Should I disclose a colleague's illness (that I should not know) when others badmouth him

Is it true that cut time means "play twice as fast as written"?

How to illustrate the Mean Value theorem?

Is DateWithin30Days(Date 1, Date 2) an Apex Method?

Is the taxi route omitted in low visibility (LVP)?

Is the Indo-European language family made up?

How to connect Wolfram Engine to Jupyter on Ubuntu?

Why aren't space telescopes put in GEO?

In general, would I need to season a meat when making a sauce?

Boss wants me to falsify a report. How should I document this unethical demand?

Is the field of q-series 'dead'?

Is it rude to call a professor by their last name with no prefix in a non-academic setting?

Caught 2 students cheating together on the final exam that I proctored

Python program to take in two strings and print the larger string

Is Jon Snow the last of his House?

Gladys goes shopping

Why is this Simple Puzzle impossible to solve?

How should I introduce map drawing to my players?

Python program to find the most frequent letter in a text

What to do when you've set the wrong ISO for your film?



less: advertise terminfo through pipe


man causes a broken pipe when using a pager other than lessParse terminfo u6 stringHow can I use terminfo entries on FreeBSD?Is there a way to provide “overrides” to a terminfo entry?How to use terminfo to set colors for man and less?terminfo disable XON/XOFFWhy END key does not have terminfo entry?Comparing current terminfo database against a terminfo source fileWhy terminfo entries do not follow convention?Why isn't screen on macOS picking up my ~/.terminfo?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















If I do ls | less, ls detects that it isn't connected to a terminal, which is fair enough. Except that less is connected to a terminal. In this setup, ls could produce the coloured and columnised output targetting terminals, and less could deal with it properly. You can get colours working properly with ls --color=force | less -r, but that's more typing, and it doesn't do columns.



What would be cool is if there were a switch on less that tells whatever is hooked up to it to treat it like a real terminal. So you could do ls | less -T and get the coloured and columnised listing in less.




  1. Has anything like this been done?


  2. Could less or a pager like it actually do that by itself, or would this require cooperation from the shell? For instance, would the shell need to set up a pseudoterminal for ls to connect to?











share|improve this question







New contributor



Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    If I do ls | less, ls detects that it isn't connected to a terminal, which is fair enough. Except that less is connected to a terminal. In this setup, ls could produce the coloured and columnised output targetting terminals, and less could deal with it properly. You can get colours working properly with ls --color=force | less -r, but that's more typing, and it doesn't do columns.



    What would be cool is if there were a switch on less that tells whatever is hooked up to it to treat it like a real terminal. So you could do ls | less -T and get the coloured and columnised listing in less.




    1. Has anything like this been done?


    2. Could less or a pager like it actually do that by itself, or would this require cooperation from the shell? For instance, would the shell need to set up a pseudoterminal for ls to connect to?











    share|improve this question







    New contributor



    Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      If I do ls | less, ls detects that it isn't connected to a terminal, which is fair enough. Except that less is connected to a terminal. In this setup, ls could produce the coloured and columnised output targetting terminals, and less could deal with it properly. You can get colours working properly with ls --color=force | less -r, but that's more typing, and it doesn't do columns.



      What would be cool is if there were a switch on less that tells whatever is hooked up to it to treat it like a real terminal. So you could do ls | less -T and get the coloured and columnised listing in less.




      1. Has anything like this been done?


      2. Could less or a pager like it actually do that by itself, or would this require cooperation from the shell? For instance, would the shell need to set up a pseudoterminal for ls to connect to?











      share|improve this question







      New contributor



      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      If I do ls | less, ls detects that it isn't connected to a terminal, which is fair enough. Except that less is connected to a terminal. In this setup, ls could produce the coloured and columnised output targetting terminals, and less could deal with it properly. You can get colours working properly with ls --color=force | less -r, but that's more typing, and it doesn't do columns.



      What would be cool is if there were a switch on less that tells whatever is hooked up to it to treat it like a real terminal. So you could do ls | less -T and get the coloured and columnised listing in less.




      1. Has anything like this been done?


      2. Could less or a pager like it actually do that by itself, or would this require cooperation from the shell? For instance, would the shell need to set up a pseudoterminal for ls to connect to?








      pty pager terminfo






      share|improve this question







      New contributor



      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 55 mins ago









      Eric ToombsEric Toombs

      1




      1




      New contributor



      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Eric Toombs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          if you run



          alias


          You will see it's set to auto so just change it in your bashrc.






          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
            });


            }
            });






            Eric Toombs is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520984%2fless-advertise-terminfo-through-pipe%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            if you run



            alias


            You will see it's set to auto so just change it in your bashrc.






            share|improve this answer




























              0














              if you run



              alias


              You will see it's set to auto so just change it in your bashrc.






              share|improve this answer


























                0












                0








                0







                if you run



                alias


                You will see it's set to auto so just change it in your bashrc.






                share|improve this answer













                if you run



                alias


                You will see it's set to auto so just change it in your bashrc.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 16 mins ago









                user1133275user1133275

                3,8551924




                3,8551924






















                    Eric Toombs is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Eric Toombs is a new contributor. Be nice, and check out our Code of Conduct.













                    Eric Toombs is a new contributor. Be nice, and check out our Code of Conduct.












                    Eric Toombs is a new contributor. Be nice, and check out our Code of Conduct.
















                    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%2f520984%2fless-advertise-terminfo-through-pipe%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m