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: Wed, 7 Apr 2010 13:04:34 +0100 Received: by 10.239.182.82 with SMTP id p18mr849146hbg.31.1270641874967; Wed, 07 Apr 2010 05:04:34 -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 wrote: >> For example, to set the background >> colour to dark red: >> >> echo $'\e]12;64,0,0\a' > > Err. Well that set my block cursor to dark red, but anyway, yeah, I > get the idea. Oops. 12 indeed is the cursor. 11 is background, 10 is foreground. And the OSC 4 sequence lets you change all 256 colours, whereby the colour number appears after the first semicolon, e.g. this turns ANSI yellow (colour 3) up to full brightness: echo $'\e]4;3;255,255,0\a' >I will read the xterm doc you linked to and "play > around". Oh. Is it because > $ echo $TERM > xterm-256color No, the control sequences are available independent of the TERM setting. > (Oh God. I just looked at the document you linked to. I'm not sure > which is denser, me or it! Anyway, I will read and see what I can make > of it.) :) > Incidentally, do you prefer mintty related subjects here or in > mintty-discuss? Both seem appropriate. I don't really mind, since they both end up in my inbox anyway, but generally the more specific list is the better choice, initially anyway. I do prefer bug reports and enhancement requests to go straight to the mintty issue tracker, though. Good luck, 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