Solved

How to change the text color with .profile

Posted on 2007-11-28
5
2,642 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

630 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