delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/07/08:04:46

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: <l2seb3a2d501004070350je1bb7f89g869565f986454a50@mail.gmail.com>
References: <m2xeb3a2d501004060031m2b1f8bb2y914a8299c1617245 AT mail DOT gmail DOT com> <l2q416096c61004061114tb8723c6dlcb2b28ed1e3c0168 AT mail DOT gmail DOT com> <l2seb3a2d501004070350je1bb7f89g869565f986454a50 AT mail DOT gmail DOT com>
Date: Wed, 7 Apr 2010 13:04:34 +0100
Message-ID: <m2t416096c61004070504y9dd5a3eewd6ef9db71071406c@mail.gmail.com>
Subject: Re: mintty - changing colours when logging in to remote host
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019