X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 6 Apr 2010 19:14:23 +0100 Received: by 10.239.137.14 with SMTP id j14mr753391hbj.198.1270577663927; Tue, 06 Apr 2010 11:14:23 -0700 (PDT) Message-ID: Subject: Re: mintty - changing colours when logging in to remote host From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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 Gary: > Is it possible to change the colour scheme when connecting to a remote > system, to remind me where I am actually "running"? Yes. There are control sequences for changing the colours, so you could do this with the appropriate echo commands in your remote login script. Or you could have a local script that changes colours before connecting to the remote system. For example, to set the background colour to dark red: echo $'\e]12;64,0,0\a' Alternatively, you could invoke the remote connection directly from a shortcut and configure the colours by setting the shortcut target to something like this: C:\cygwin\bin\mintty.exe -o BackgroundColour=128,0,0 /bin/ssh server See the mintty manual for further information. The xterm documentation at http://invisible-island.net/xterm/ctlseqs/ctlseqs.html has the full details of those control sequences (look for "Operating System Controls"). Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple