I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?
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)
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.
This will start an xterm with no colors.
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.
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.