Solved

How to change the text color with .profile

Posted on 2007-11-28
5
2,628 Views
Last Modified: 2013-12-27
Hi Experts,

Within the uers profile, our vendor created a menu system to load up three different environments.  Do any of you know how to change the text color within the .profile so that each environment is a different color?

Thanks for any assistance.
0
Comment
Question by:byd2k
  • 2
  • 2
5 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 20368515
Hi,

This can be done with terminal escape sequences which can be sent to the terminal. Please see:

http://www.termsys.demon.co.uk/vtansi.htm
0
 

Author Comment

by:byd2k
ID: 20368614
Hi Omarfarid,

Can you give me an example of manually typing in the command for a white background and a black text?

Thanks!
0
 
LVL 48

Expert Comment

by:Tintin
ID: 20368680
What type of terminal are you using?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 50 total points
ID: 20368783
Hi,

Well I tried my best, but I can not verify since I am using ssh client. try


 echo '^[[2;37;40m'
0
 

Author Comment

by:byd2k
ID: 20564006
Thank you for your help.  As it turns out, we are using a client application called WRQ.  I will reopen a new question for that since I am confident that your answer would work for a non-WRQ terminal client.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question