X-Spam-Check-By: sourceware.org Date: Fri, 24 Nov 2006 22:07:15 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Deluigi Marcus cc: cygwin AT cygwin DOT com Subject: Re: Terminal background color In-Reply-To: <8CCA05D099E31144ADF2A24010B5A2B2346EB5@MS01.elca.ch> Message-ID: References: <8CCA05D099E31144ADF2A24010B5A2B2346EB5 AT MS01 DOT elca DOT ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, 24 Nov 2006, Deluigi Marcus wrote: > This may be a little OT. > I start the cygwin terminal with the cygwin.bat and I would like to > change the background color of each session with a script (e.g. a random > background color). > > I am developing some software and I have a long compilation process (8') > and different colors help me to distinguish for which window is logged > on on which machine. > > I searched for previous posts but I found only little information. All of the replies given so far had to do with setting and using the prompt to identify the window (which, I understand, won't do much good for a window showing the long output of a remote build), so I'll give it a shot. It's possible to use ANSI Escape sequences to control the background of a given shell (just set the color/background combination and don't reset it). Of course, this method will break with anything that does reset it (such as a color prompt, colored ls output, etc). Alternatively, use rxvt, which, like xterm, understands special sequences to dynamically change the background color of the window, among other things). Rxvt also has the additional advantage that you can specify the background color programmatically on the command line, so you can create custom scripts/shortcuts for each machine. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/