Solved

How to change the text color with .profile

Posted on 2007-11-28
5
2,631 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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