Disable color in shell/terminal





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







13















I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?










share|improve this question













migrated from stackoverflow.com Apr 6 '11 at 1:38


This question came from our site for professional and enthusiast programmers.

























    13















    I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?










    share|improve this question













    migrated from stackoverflow.com Apr 6 '11 at 1:38


    This question came from our site for professional and enthusiast programmers.





















      13












      13








      13


      2






      I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?










      share|improve this question














      I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?







      linux bash shell colors






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 6 '11 at 1:26









      PoePoe

      168115




      168115




      migrated from stackoverflow.com Apr 6 '11 at 1:38


      This question came from our site for professional and enthusiast programmers.









      migrated from stackoverflow.com Apr 6 '11 at 1:38


      This question came from our site for professional and enthusiast programmers.
























          4 Answers
          4






          active

          oldest

          votes


















          7














          if you are using PUTTY to remotely access the shell, then:

          - on the left panel, click Colors


          - uncheck the three boxes on the right panel (they are checked by default)






          share|improve this answer
























          • I'll have to switch to a terminal program that lets me do this. Thanks.

            – Poe
            Apr 6 '11 at 1:57






          • 1





            Geekosaur's answer is better for you, really.

            – ocodo
            Apr 6 '11 at 3:21











          • @slomojo his answer didn't work with my terminal client

            – Poe
            Apr 6 '11 at 9:46






          • 1





            Oh, interesting, which client is it?

            – ocodo
            Apr 6 '11 at 10:37











          • I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

            – Poe
            Apr 7 '11 at 3:42



















          13














          unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.






          share|improve this answer



















          • 3





            Definitely recommend VT220 over XTERM.

            – ocodo
            Apr 6 '11 at 3:20






          • 6





            "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

            – Idelic
            Apr 11 '11 at 21:37



















          4














          xterm -cm


          This will start an xterm with no colors.






          share|improve this answer


























          • This won't work if you have LS_COLORS set FYI.

            – lzap
            Oct 14 '16 at 14:22



















          1














          I encountered the same problem while writing an SSH robot in Python (colors came out as jibberish when run through Visual Studio). The simplest solution was to open a new shell inside the other shell that was running.



          sh


          This opened a fresh shell without any of my settings and all printouts was monochrome. It also reset the prompt which was a bonus for my intended purpose.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f267175%2fdisable-color-in-shell-terminal%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            if you are using PUTTY to remotely access the shell, then:

            - on the left panel, click Colors


            - uncheck the three boxes on the right panel (they are checked by default)






            share|improve this answer
























            • I'll have to switch to a terminal program that lets me do this. Thanks.

              – Poe
              Apr 6 '11 at 1:57






            • 1





              Geekosaur's answer is better for you, really.

              – ocodo
              Apr 6 '11 at 3:21











            • @slomojo his answer didn't work with my terminal client

              – Poe
              Apr 6 '11 at 9:46






            • 1





              Oh, interesting, which client is it?

              – ocodo
              Apr 6 '11 at 10:37











            • I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

              – Poe
              Apr 7 '11 at 3:42
















            7














            if you are using PUTTY to remotely access the shell, then:

            - on the left panel, click Colors


            - uncheck the three boxes on the right panel (they are checked by default)






            share|improve this answer
























            • I'll have to switch to a terminal program that lets me do this. Thanks.

              – Poe
              Apr 6 '11 at 1:57






            • 1





              Geekosaur's answer is better for you, really.

              – ocodo
              Apr 6 '11 at 3:21











            • @slomojo his answer didn't work with my terminal client

              – Poe
              Apr 6 '11 at 9:46






            • 1





              Oh, interesting, which client is it?

              – ocodo
              Apr 6 '11 at 10:37











            • I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

              – Poe
              Apr 7 '11 at 3:42














            7












            7








            7







            if you are using PUTTY to remotely access the shell, then:

            - on the left panel, click Colors


            - uncheck the three boxes on the right panel (they are checked by default)






            share|improve this answer













            if you are using PUTTY to remotely access the shell, then:

            - on the left panel, click Colors


            - uncheck the three boxes on the right panel (they are checked by default)







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 6 '11 at 1:34









            BeelBeel

            28817




            28817













            • I'll have to switch to a terminal program that lets me do this. Thanks.

              – Poe
              Apr 6 '11 at 1:57






            • 1





              Geekosaur's answer is better for you, really.

              – ocodo
              Apr 6 '11 at 3:21











            • @slomojo his answer didn't work with my terminal client

              – Poe
              Apr 6 '11 at 9:46






            • 1





              Oh, interesting, which client is it?

              – ocodo
              Apr 6 '11 at 10:37











            • I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

              – Poe
              Apr 7 '11 at 3:42



















            • I'll have to switch to a terminal program that lets me do this. Thanks.

              – Poe
              Apr 6 '11 at 1:57






            • 1





              Geekosaur's answer is better for you, really.

              – ocodo
              Apr 6 '11 at 3:21











            • @slomojo his answer didn't work with my terminal client

              – Poe
              Apr 6 '11 at 9:46






            • 1





              Oh, interesting, which client is it?

              – ocodo
              Apr 6 '11 at 10:37











            • I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

              – Poe
              Apr 7 '11 at 3:42

















            I'll have to switch to a terminal program that lets me do this. Thanks.

            – Poe
            Apr 6 '11 at 1:57





            I'll have to switch to a terminal program that lets me do this. Thanks.

            – Poe
            Apr 6 '11 at 1:57




            1




            1





            Geekosaur's answer is better for you, really.

            – ocodo
            Apr 6 '11 at 3:21





            Geekosaur's answer is better for you, really.

            – ocodo
            Apr 6 '11 at 3:21













            @slomojo his answer didn't work with my terminal client

            – Poe
            Apr 6 '11 at 9:46





            @slomojo his answer didn't work with my terminal client

            – Poe
            Apr 6 '11 at 9:46




            1




            1





            Oh, interesting, which client is it?

            – ocodo
            Apr 6 '11 at 10:37





            Oh, interesting, which client is it?

            – ocodo
            Apr 6 '11 at 10:37













            I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

            – Poe
            Apr 7 '11 at 3:42





            I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS

            – Poe
            Apr 7 '11 at 3:42













            13














            unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.






            share|improve this answer



















            • 3





              Definitely recommend VT220 over XTERM.

              – ocodo
              Apr 6 '11 at 3:20






            • 6





              "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

              – Idelic
              Apr 11 '11 at 21:37
















            13














            unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.






            share|improve this answer



















            • 3





              Definitely recommend VT220 over XTERM.

              – ocodo
              Apr 6 '11 at 3:20






            • 6





              "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

              – Idelic
              Apr 11 '11 at 21:37














            13












            13








            13







            unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.






            share|improve this answer













            unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 6 '11 at 1:30









            geekosaurgeekosaur

            9,6752436




            9,6752436








            • 3





              Definitely recommend VT220 over XTERM.

              – ocodo
              Apr 6 '11 at 3:20






            • 6





              "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

              – Idelic
              Apr 11 '11 at 21:37














            • 3





              Definitely recommend VT220 over XTERM.

              – ocodo
              Apr 6 '11 at 3:20






            • 6





              "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

              – Idelic
              Apr 11 '11 at 21:37








            3




            3





            Definitely recommend VT220 over XTERM.

            – ocodo
            Apr 6 '11 at 3:20





            Definitely recommend VT220 over XTERM.

            – ocodo
            Apr 6 '11 at 3:20




            6




            6





            "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

            – Idelic
            Apr 11 '11 at 21:37





            "xterm" is a color terminal, to disable colors you need TERM=xterm-mono

            – Idelic
            Apr 11 '11 at 21:37











            4














            xterm -cm


            This will start an xterm with no colors.






            share|improve this answer


























            • This won't work if you have LS_COLORS set FYI.

              – lzap
              Oct 14 '16 at 14:22
















            4














            xterm -cm


            This will start an xterm with no colors.






            share|improve this answer


























            • This won't work if you have LS_COLORS set FYI.

              – lzap
              Oct 14 '16 at 14:22














            4












            4








            4







            xterm -cm


            This will start an xterm with no colors.






            share|improve this answer















            xterm -cm


            This will start an xterm with no colors.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 17 '12 at 10:10









            slhck

            163k47451476




            163k47451476










            answered Apr 17 '12 at 10:07









            Rajat BhatiaRajat Bhatia

            411




            411













            • This won't work if you have LS_COLORS set FYI.

              – lzap
              Oct 14 '16 at 14:22



















            • This won't work if you have LS_COLORS set FYI.

              – lzap
              Oct 14 '16 at 14:22

















            This won't work if you have LS_COLORS set FYI.

            – lzap
            Oct 14 '16 at 14:22





            This won't work if you have LS_COLORS set FYI.

            – lzap
            Oct 14 '16 at 14:22











            1














            I encountered the same problem while writing an SSH robot in Python (colors came out as jibberish when run through Visual Studio). The simplest solution was to open a new shell inside the other shell that was running.



            sh


            This opened a fresh shell without any of my settings and all printouts was monochrome. It also reset the prompt which was a bonus for my intended purpose.






            share|improve this answer




























              1














              I encountered the same problem while writing an SSH robot in Python (colors came out as jibberish when run through Visual Studio). The simplest solution was to open a new shell inside the other shell that was running.



              sh


              This opened a fresh shell without any of my settings and all printouts was monochrome. It also reset the prompt which was a bonus for my intended purpose.






              share|improve this answer


























                1












                1








                1







                I encountered the same problem while writing an SSH robot in Python (colors came out as jibberish when run through Visual Studio). The simplest solution was to open a new shell inside the other shell that was running.



                sh


                This opened a fresh shell without any of my settings and all printouts was monochrome. It also reset the prompt which was a bonus for my intended purpose.






                share|improve this answer













                I encountered the same problem while writing an SSH robot in Python (colors came out as jibberish when run through Visual Studio). The simplest solution was to open a new shell inside the other shell that was running.



                sh


                This opened a fresh shell without any of my settings and all printouts was monochrome. It also reset the prompt which was a bonus for my intended purpose.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 9:07









                Lord WolfensteinLord Wolfenstein

                131117




                131117






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f267175%2fdisable-color-in-shell-terminal%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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix