The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Font Color Change Using .profile fifo_vs_lifo23 Shell Programming and Scripting 0 01-25-2007 07:31 AM
Change background color in VI editor tictactoe UNIX for Dummies Questions & Answers 1 09-14-2006 11:19 PM
how to get background job to foreground sandilya Shell Programming and Scripting 4 02-02-2006 07:29 AM
Execute SAS Foreground terala Shell Programming and Scripting 0 10-21-2005 12:50 PM
problems with ctrl-z, to switch foreground, background yls177 UNIX for Dummies Questions & Answers 9 04-15-2003 09:09 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2005
Registered User
 

Join Date: Aug 2005
Posts: 2
set background/foreground color in .profile

I am using a telnet session (VT100) and need to modify my .profile so that it will set the color of the telnet session. I am not using Xterm (ie: can't use .Xdefaults). I am able to change the colors via menu's but need to preset in .profile. Is this possible??? Can't find anything at all on how to do it. Please help
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-12-2005
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 905
Check the list of ANSI escape codes here: http://www.bluesock.org/~willg/dev/ansi.html

You just need to "echo" the appropriate codes to the screen. Note that any other command/program which uses ANSI color codes will reset your choices, so you may not get the desired affect by setting these in your profile.
Reply With Quote
  #3 (permalink)  
Old 08-12-2005
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,497
This is usually a function of the termainal you are using and not your environment. You can change the text color in the way you describe, to some extent, but if it is the same functionality as you get in your terminals menu then I doubt you'll be able to do what you want.
Reply With Quote
  #4 (permalink)  
Old 08-14-2005
Registered User
 

Join Date: Aug 2005
Posts: 2
Thank you for your assistance
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0