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;
}
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
migrated from stackoverflow.com Apr 6 '11 at 1:38
This question came from our site for professional and enthusiast programmers.
add a comment |
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
migrated from stackoverflow.com Apr 6 '11 at 1:38
This question came from our site for professional and enthusiast programmers.
add a comment |
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
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
linux bash shell colors
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.
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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)
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
|
show 1 more comment
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.
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
add a comment |
xterm -cm
This will start an xterm with no colors.
This won't work if you have LS_COLORS set FYI.
– lzap
Oct 14 '16 at 14:22
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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)
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
|
show 1 more comment
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)
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
|
show 1 more comment
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)
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)
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
|
show 1 more comment
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
|
show 1 more comment
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
xterm -cm
This will start an xterm with no colors.
This won't work if you have LS_COLORS set FYI.
– lzap
Oct 14 '16 at 14:22
add a comment |
xterm -cm
This will start an xterm with no colors.
This won't work if you have LS_COLORS set FYI.
– lzap
Oct 14 '16 at 14:22
add a comment |
xterm -cm
This will start an xterm with no colors.
xterm -cm
This will start an xterm with no colors.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 7 at 9:07
Lord WolfensteinLord Wolfenstein
131117
131117
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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