• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2658
  • Last Modified:

How to change the text color with .profile

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
byd2k
Asked:
byd2k
  • 2
  • 2
1 Solution
 
omarfaridCommented:
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
 
byd2kAuthor Commented:
Hi Omarfarid,

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

Thanks!
0
 
TintinCommented:
What type of terminal are you using?
0
 
omarfaridCommented:
Hi,

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


 echo '^[[2;37;40m'
0
 
byd2kAuthor Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now