Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ubuntu color escape codes 1

Status
Not open for further replies.

BJZeak

Programmer
May 3, 2008
230
0
16
CA
I have set UBUNTU up with KSH and WYSE60 yet it it still insists on sending out Color Escape codes ... is there anyway to turn this OFF
 
What is your $TERM set to? If it is correctly set then it shouldn't try to display colours on a terminal type that does not support them.

Which command(s) are display coloured text? Is it mainly ls? If so, unsetting LS_COLORS should fix it... you'll probably need to find where this is set during login to do so permanently. Check /etc/profile and /etc/profile.d perhaps...

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Thank-you for that pointer ... turns out this was set in the .bashrc file so set;
color_promt=

 
To be clear, the line must be:
color_prompt=yes

isn't it ?

and then:
PS1="\[\e[0;34m\][\u@\h \W]\$\[\e[0m\] "
should work
 

color_promt=

removes any prior setting of color ... I wanted to turn OFF the color escape codes not turn them on.

THX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top